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

Public Member Functions

 __construct ($message, $code=0, $previous=null, $length=null)
 Creates a new LengthException. More...
 
 getLength ()
 Gets the length. More...
 
 __toString ()
 Returns a string representation of the exception. More...
 

Data Fields

const CODE_UNSUPPORTED = 1200
 
const CODE_INVALID = 1300
 
const CODE_BEYOND_SHEME = 1301
 

Detailed Description

Definition at line 37 of file LengthException.php.

Constructor & Destructor Documentation

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

Creates a new LengthException.

Parameters
string$messageThe Exception message to throw.
int$codeThe Exception code.
\Exception$previousThe previous exception used for the exception chaining.
number$lengthThe length.

Definition at line 59 of file LengthException.php.

Member Function Documentation

__toString ( )

Returns a string representation of the exception.

Returns
string The exception as a string.

Definition at line 87 of file LengthException.php.

getLength ( )

Gets the length.

Returns
number The length.

Definition at line 74 of file LengthException.php.

Field Documentation

const CODE_BEYOND_SHEME = 1301

Definition at line 42 of file LengthException.php.

const CODE_INVALID = 1300

Definition at line 41 of file LengthException.php.

const CODE_UNSUPPORTED = 1200

Definition at line 40 of file LengthException.php.


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