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

OpenViduProblemWithBodyParameterException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 10
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 3 1
A __construct() 0 3 1
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