Passed
Push — master ( f5e35b...7b483a )
by Jacobo
07:40 queued 04:57
created

__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace SquareetLabs\LaravelOpenVidu\Exceptions;
4
5
6
use Throwable;
7
8
/**
9
 * Class OpenViduProblemWithBodyParameterException
10
 * @package SquareetLabs\LaravelOpenVidu\Exceptions
11
 */
12
class OpenViduProblemWithBodyParameterException extends OpenViduException
13
{
14
    public function __construct(Throwable $previous = null)
15
    {
16
        parent::__construct('There is a problem with some body parameter', 400, $previous);
17
    }
18
19
    public function __toString()
20
    {
21
        return __CLASS__.":[{$this->code}]:{$this->message}\n";
22
    }
23
}
24