PEAR2_Net_RouterOS  1.0.0b1
A MikroTik RouterOS client
PEAR2/Net/RouterOS/UnexpectedValueException.php
Go to the documentation of this file.
00001 <?php
00002 
00022 namespace PEAR2\Net\RouterOS;
00023 
00034 class UnexpectedValueException extends \UnexpectedValueException
00035     implements Exception
00036 {
00037 
00042     private $_value = null;
00043 
00053     public function __construct($message, $code = 0, $previous = null,
00054         $value = null
00055     ) {
00056         parent::__construct($message, $code, $previous);
00057         $this->_value = $value;
00058     }
00059 
00065     public function getValue()
00066     {
00067         return $this->_value;
00068     }
00069 
00070     // @codeCoverageIgnoreStart
00071     // String representation is not reliable in testing
00072 
00078     public function __toString()
00079     {
00080         return parent::__toString() . "\nValue:{$this->_value}";
00081     }
00082 
00083     // @codeCoverageIgnoreEnd
00084 }