Пример #1
0
 /**
  * Construct it by building up an appropriate message.
  * @param name The name which was not found.
  */
 public function __construct($name)
 {
     parent::__construct("Name not found: '{$name}'");
     $this->name = $name;
 }
Пример #2
0
 public function testGetData()
 {
     $exception = new RpcException();
     $exception->setData('test');
     $this->assertSame('test', $exception->getData());
 }
 /**
  * 
  */
 public function __construct()
 {
     parent::__construct(self::EXCEPTION_MESSAGE, null, null);
 }
Пример #4
0
 /**
  * Construct it with the given error result.
  * @param exitCode The shell's exit code returned.
  */
 public function __construct($exitCode)
 {
     parent::__construct("Namecoind execution failed" . " with exit code {$exitCode}.");
     $this->exitCode = $exitCode;
 }