RemotePlusError   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace DPRMC\IceRemotePlusClient\Exceptions;
4
5
use Exception;
6
use Throwable;
7
8
/**
9
 * Class RemotePlusError
10
 * @package DPRMC\IceRemotePlusClient\Exceptions
11
 * @see https://rplus.intdata.com/documentation/RemotePlus_UserGuide.pdf
12
 */
13
class RemotePlusError extends Exception {
14
15
    /**
16
     * @var string Starts with !E
17
     * @see https://rplus.intdata.com/documentation/RemotePlus_UserGuide.pdf
18
     */
19
    public $remotePlusErrorCode;
20
21
    /**
22
     * RemotePlusError constructor.
23
     * @param string $message
24
     * @param int $code
25
     * @param Throwable|NULL $previous
26
     * @param string|NULL $remotePlusErrorCode
27
     */
28
    public function __construct( string $message = "", int $code = 0, Throwable $previous = NULL, string $remotePlusErrorCode=null ) {
29
        parent::__construct( $message, $code, $previous );
30
        $this->remotePlusErrorCode = $remotePlusErrorCode;
31
    }
32
}