/** * 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; }
public function testGetData() { $exception = new RpcException(); $exception->setData('test'); $this->assertSame('test', $exception->getData()); }
/** * */ public function __construct() { parent::__construct(self::EXCEPTION_MESSAGE, null, null); }
/** * 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; }