PEAR2_Net_RouterOS  1.0.0b6
A MikroTik RouterOS client
UnexpectedValueException Class Reference
+ Inheritance diagram for UnexpectedValueException:
+ Collaboration diagram for UnexpectedValueException:

Public Member Functions

 __construct ( $message, $code=0, E $previous=null, $value=null)
 Creates a new UnexpectedValueException. More...
 
 getValue ()
 Gets the unexpected value. More...
 
 __toString ()
 Returns a string representation of the exception. More...
 

Data Fields

const CODE_CALLBACK_INVALID = 10502
 
const CODE_ACTION_UNKNOWN = 30100
 
const CODE_RESPONSE_TYPE_UNKNOWN = 50100
 

Detailed Description

Definition at line 43 of file UnexpectedValueException.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $message,
  $code = 0,
$previous = null,
  $value = null 
)

Creates a new UnexpectedValueException.

Parameters
string$messageThe Exception message to throw.
int$codeThe Exception code.
E | null$previousThe previous exception used for the exception chaining.
mixed$valueThe unexpected value.

Definition at line 65 of file UnexpectedValueException.php.

Member Function Documentation

◆ __toString()

__toString ( )

Returns a string representation of the exception.

Returns
string The exception as a string.

Definition at line 93 of file UnexpectedValueException.php.

◆ getValue()

getValue ( )

Gets the unexpected value.

Returns
mixed The unexpected value.

Definition at line 80 of file UnexpectedValueException.php.


The documentation for this class was generated from the following file: