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

Public Member Functions

 __construct ( $message, $code=0, E $previous=null, ResponseCollection $responses=null)
 Creates a new RouterErrorException. More...
 
 getResponses ()
 Gets the complete set responses returned by the router. More...
 
 __toString ()
 Returns a string representation of the exception. More...
 

Data Fields

const CODE_ITEM_ERROR = 0x100000
 
const CODE_SCRIPT_ERROR = 0x200000
 
const CODE_READ_ERROR = 0x010000
 
const CODE_WRITE_ERROR = 0x020000
 
const CODE_EXEC_ERROR = 0x040000
 
const CODE_CACHE_ERROR = 0x100001
 
const CODE_GET_ERROR = 0x110001
 
const CODE_GETALL_ERROR = 0x110002
 
const CODE_ADD_ERROR = 0x120001
 
const CODE_SET_ERROR = 0x120002
 
const CODE_REMOVE_ERROR = 0x120004
 
const CODE_ENABLE_ERROR = 0x120012
 
const CODE_DISABLE_ERROR = 0x120022
 
const CODE_COMMENT_ERROR = 0x120042
 
const CODE_UNSET_ERROR = 0x120082
 
const CODE_MOVE_ERROR = 0x120107
 
const CODE_SCRIPT_ADD_ERROR = 0x220001
 
const CODE_SCRIPT_REMOVE_ERROR = 0x220004
 
const CODE_SCRIPT_RUN_ERROR = 0x240001
 
const CODE_SCRIPT_FILE_ERROR = 0x240003
 

Detailed Description

Definition at line 44 of file RouterErrorException.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $message,
  $code = 0,
$previous = null,
ResponseCollection  $responses = null 
)

Creates a new RouterErrorException.

Parameters
string$messageThe Exception message to throw.
int$codeThe Exception code.
E | null$previousThe previous exception used for the exception chaining.
ResponseCollection | null$responsesThe complete set responses returned by the router.

Definition at line 87 of file RouterErrorException.php.

Member Function Documentation

◆ __toString()

__toString ( )

Returns a string representation of the exception.

Returns
string The exception as a string.

Definition at line 116 of file RouterErrorException.php.

◆ getResponses()

getResponses ( )

Gets the complete set responses returned by the router.

Returns
ResponseCollection|null The complete set responses returned by the router.

Definition at line 103 of file RouterErrorException.php.


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