PEAR2_Net_RouterOS  1.0.0b5
A MikroTik RouterOS client
 All Data Structures Namespaces Files Functions Variables Pages
UnexpectedValueException Class Reference
+ Inheritance diagram for UnexpectedValueException:
+ Collaboration diagram for UnexpectedValueException:

Public Member Functions

 __construct ($message, $code=0, $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 34 of file UnexpectedValueException.php.

Constructor & Destructor Documentation

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

Creates a new UnexpectedValueException.

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

Definition at line 54 of file UnexpectedValueException.php.

Member Function Documentation

__toString ( )

Returns a string representation of the exception.

Returns
string The exception as a string.

Definition at line 82 of file UnexpectedValueException.php.

getValue ( )

Gets the unexpected value.

Returns
mixed The unexpected value.

Definition at line 69 of file UnexpectedValueException.php.

Field Documentation

const CODE_ACTION_UNKNOWN = 30100

Definition at line 37 of file UnexpectedValueException.php.

const CODE_CALLBACK_INVALID = 10502

Definition at line 36 of file UnexpectedValueException.php.

const CODE_RESPONSE_TYPE_UNKNOWN = 50100

Definition at line 38 of file UnexpectedValueException.php.


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