LengthException.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
RouterOS API client implementation.
RouterOS is the flag product of the company MikroTik and is a powerful router software. One of its many abilities is to allow control over it via an API. This package provides a client for that API, in turn allowing you to use PHP to control RouterOS hosts. PHP version 5
Author
Vasil Rangelov  
Category
Net  
Copyright
2011 Vasil Rangelov  
License
LGPL License 2.1  
Link
http://pear2.php.net/PEAR2_Net_RouterOS  
Package
PEAR2_Net_RouterOS  
Version
1.0.0b4  

\PEAR2\Net\RouterOS\LengthException

Package: PEAR2_Net_RouterOS
Exception thrown when there is a problem with a word's length.
Implements
Parent(s)
\LengthException
Author
Vasil Rangelov  
Category
Net  
License
LGPL License 2.1  
Link
http://pear2.php.net/PEAR2_Net_RouterOS  

Constants

>VConstant  CODE_UNSUPPORTED = 1200
>VConstant  CODE_INVALID = 1300
>VConstant  CODE_BEYOND_SHEME = 1301

Properties

>VPropertyprivatemixed $_length

The problematic length.

Details
Type
mixed

Methods

methodpublic__construct(string $message, int $code = 0, \Exception $previous = null, \PEAR2\Net\RouterOS\number $length = null) : void

Creates a new LengthException.

Parameters
NameTypeDescription
$messagestring

The Exception message to throw.

$codeint

The Exception code.

$previous\Exception

The previous exception used for the exception chaining.

$length\PEAR2\Net\RouterOS\number

The length.

methodpublic__toString() : string

Returns a string representation of the exception.

Returns
TypeDescription
stringThe exception as a string.
methodpublicgetLength() : \PEAR2\Net\RouterOS\number

Gets the length.

Returns
TypeDescription
\PEAR2\Net\RouterOS\numberThe length.
Documentation was generated by phpDocumentor 2.1.0-DEV .