UnexpectedValueException.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\UnexpectedValueException

Package: PEAR2_Net_RouterOS
Exception thrown when encountering an invalid value in a function argument.
Implements
Parent(s)
\UnexpectedValueException
Author
Vasil Rangelov  
Category
Net  
License
LGPL License 2.1  
Link
http://pear2.php.net/PEAR2_Net_RouterOS  

Constants

>VConstant  CODE_CALLBACK_INVALID = 10502
>VConstant  CODE_ACTION_UNKNOWN = 30100
>VConstant  CODE_RESPONSE_TYPE_UNKNOWN = 50100

Properties

>VPropertyprivatemixed $_value

The unexpected value.

Details
Type
mixed

Methods

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

Creates a new UnexpectedValueException.

Parameters
NameTypeDescription
$messagestring

The Exception message to throw.

$codeint

The Exception code.

$previous\PEAR2\Net\RouterOS\Exception

The previous exception used for the exception chaining.

$valuemixed

The unexpected value.

methodpublic__toString() : string

Returns a string representation of the exception.

Returns
TypeDescription
stringThe exception as a string.
methodpublicgetValue() : mixed

Gets the unexpected value.

Returns
TypeDescription
mixedThe unexpected value.
Documentation was generated by phpDocumentor 2.1.0-DEV .