\UnexpectedValueException.php
RouterOS API client implementation.
This package allows you to read and write information from a RouterOS host using MikroTik's RouterOS API.
PHP version 5
- Author
- Vasil Rangelov
- Category
- Net
- Copyright
- 2011 Vasil Rangelov
- License
- LGPL License 2.1
- Link
- http://netrouteros.sourceforge.net/
- Package
- PEAR2_Net_RouterOS
- Version
- 1.0.0b1
\PEAR2\Net\RouterOS\UnexpectedValueException
Package: PEAR2\Net\RouterOS
Parameters
Returns
Exception thrown when encountering something not supported by RouterOS or this package.
- Implements
- \PEAR2\Net\RouterOS\Exception
- Parent(s)
- \UnexpectedValueException
- Author
- Vasil Rangelov
- Category
- Net
- License
- LGPL License 2.1
- Link
- http://netrouteros.sourceforge.net/
Properties
Methods


__construct(
string $message, int $code
=
0, \PEAR2\Net\RouterOS\Exception $previous
=
null, mixed $value
=
null
)
:
void
Creates a new UnexpectedValueException.
Name | Type | Description |
---|---|---|
$message | string | The Exception message to throw. |
$code | int | The Exception code. |
$previous | \PEAR2\Net\RouterOS\Exception | The previous exception used for the exception chaining. |
$value | mixed | The unexpected value. |


__toString(
)
:
string
Returns a string representation of the exception.
Type | Description |
---|---|
string | The exception as a string. |


getTraceAsString(
)
:
void
finalinherited
Inherited from:
\UnexpectedValueException::getTraceAsString()