public function __construct($message = "", $code = 0, Exception $previous = null) { if ($previous instanceof \OCP\Files\LockNotAcquiredException) { $message = sprintf('Target file %s is locked by another process.', $previous->path); } parent::__construct($message, $code, $previous); }
/** * Create the exception * * @param string $message * @param string $header */ public function __construct($message, $header = null) { parent::__construct($message); $this->header = $header; }
function testStatus() { $e = new Sabre_DAV_Exception(); $this->assertEquals(500, $e->getHTTPCode()); }