Esempio n. 1
0
 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;
 }
Esempio n. 3
0
 function testStatus()
 {
     $e = new Sabre_DAV_Exception();
     $this->assertEquals(500, $e->getHTTPCode());
 }