OpenViduTokenCantCreateException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SquareetLabs\LaravelOpenVidu\Exceptions;
4
5
6
use Throwable;
7
8
/**
9
 * Class OpenViduSessionCantCreateException
10
 * @package SquareetLabs\LaravelOpenVidu\Exceptions
11
 */
12
class OpenViduTokenCantCreateException extends OpenViduException
13
{
14
    /**
15
     * OpenViduTokenCantCreateException constructor.
16
     * The 424 (Failed Dependency) status code means that the method could not be performed on the resource because the requested action depended on another action and that action failed.
17
     * In this case, in obtaining the session.
18
     * https://tools.ietf.org/html/rfc4918#section-11.4
19
     * @param  string  $message
20
     * @param  Throwable|null  $previous
21
     *
22
     */
23
    public function __construct($message = "", Throwable $previous = null)
24
    {
25
        parent::__construct($message, 424, $previous);
26
    }
27
28
    public function __toString()
29
    {
30
        return __CLASS__.":[{$this->code}]:{$this->message}\n";
31
    }
32
}
33