/**
  * Initializes the exception with the given $class and $hook (the hook name
  * that was requested) and sets the exception message from it.
  * 
  * @param string $class
  * @param string $hook
  * @return void
  */
 public function __construct($class, $hook = null)
 {
     if ($hook === null) {
         $msg = "The class {$class} does not provide any plugin hooks.";
     } else {
         $msg = "The class {$class} does not provide a plugin hook named {$hook}.";
     }
     parent::__construct($msg);
 }
Example #2
0
 /**
  * Initializes the exception with the given $callback.
  * 
  * @param mixed $callback
  * @return void
  */
 public function __construct($callback)
 {
     parent::__construct('The variable ' . var_export($callback, true) . ' is not a valid callback.');
 }
 /**
  * Initializes the exception with the given $header and sets the exception
  * message from it.
  * 
  * @param string $header
  */
 public function __construct($header)
 {
     parent::__construct("Header '{$header}' requested, before request headers have been validated.");
 }
 /**
  * Initializes the exception with the given $userAgent and sets the exception
  * message from it.
  * 
  * @param string $userAgent Name of the User-Agent header that lead to the exception.
  * @return void
  */
 public function __construct($userAgent)
 {
     parent::__construct("There could be no ezcWebdavServerConfiguration be found to satisfy the User-Agent '{$userAgent}'. Seems like the basic RFC transport has also been removed.");
 }
 /**
  * Creates a new lock access denied exception.
  *
  * Access was denied to $node, while checking lock conditions.
  * 
  * @param ezcWebdavResource|ezcWebdavCollection $node 
  */
 public function __construct($node)
 {
     parent::__construct("Access denied to '{$node->path}'.");
 }
 /**
  * Initializes the exception with the given $method and sets the exception
  * message from it.
  * 
  * @param mixed $method 
  * @return void
  */
 public function __construct($method)
 {
     parent::__construct("The HTTP request method '{$method}' was not understood.");
 }
 /**
  * Initializes the exception with the given $uri and sets the exception
  * message from it.
  * 
  * @param string $uri
  */
 public function __construct($uri)
 {
     parent::__construct("URI '{$uri}' could not be handled by path factory.");
 }
 /**
  * Initializes the exception with the given $name (the key of the $_SERVER
  * array) and sets the exception message from it.
  * 
  * @param string $name
  */
 public function __construct($name)
 {
     parent::__construct("Required server variable '{$name}' is not available. Please check your web server configuration.");
 }
Example #9
0
 /**
  * Creates a new excption.
  *
  * $message explains the error. $error contains the response created by the
  * backend, if this was the reason for the exception.
  * 
  * @param mixed $message 
  * @param ezcWebdavErrorResponse $error 
  */
 public function __construct($message, ezcWebdavErrorResponse $error = null)
 {
     parent::__construct($message . ($error !== null ? ' (' . (string) $error . ')' : ''));
 }
 /**
  * Initializes the exception with the given $request and an optional reaon
  * $message and sets the exception message from it.
  * 
  * @param ezcWebdavRequest $request 
  * @param mixed $message 
  * @return void
  */
 public function __construct(ezcWebdavRequest $request, $message = null)
 {
     parent::__construct("The request type '" . get_class($request) . "' is not supported by the transport." . ($message !== null ? ' ' . $message : ''));
 }
 /**
  * Initializes the exception with the given $uri and optional $msg.
  *
  * @param string $uri
  * @param string $msg
  */
 public function __construct($uri, $msg = null)
 {
     parent::__construct("The string '{$uri}' is not a valid URI to initialize the path factory." . ($msg !== null ? " {$msg}" : ''));
 }
 /**
  * Initializes the exception with the given $client and sets the exception
  * message from it.
  * 
  * @param string $client
  */
 public function __construct($client)
 {
     parent::__construct("Could not find any ezcWebdavTransport for the client '{$client}'.");
 }
 /**
  * Initializes the exception with the given $header and sets the exception
  * message from it.
  * 
  * @param string $headerName    Name of the affected header.
  * @return void
  */
 public function __construct($headerName)
 {
     parent::__construct("The header '{$headerName}' has no equivalent in the header map.");
 }
 /**
  * Creates a new exception.
  *
  * Creates a new exception for the plugin with $pluginNamespace for which a
  * precondition failed due to $reason.
  * 
  * @param string $pluginNamespace 
  * @param string $reason 
  */
 public function __construct($pluginNamespace, $reason)
 {
     parent::__construct("Precondition for plugin '{$pluginNamespace}' failed: {$reason}");
 }