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

Public Member Functions

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

Constructor & Destructor Documentation

◆ __construct()

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

Creates a new LengthException.

Parameters
string$messageThe Exception message to throw.
int$codeThe Exception code.
E | null$previousThe previous exception used for the exception chaining.
int | double | null$lengthThe length.

Definition at line 66 of file LengthException.php.

Member Function Documentation

◆ __toString()

__toString ( )

Returns a string representation of the exception.

Returns
string The exception as a string.

Definition at line 94 of file LengthException.php.

◆ getLength()

getLength ( )

Gets the length.

Returns
int|double|null The length.

Definition at line 81 of file LengthException.php.


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