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