ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\DAV\Exception Class Reference

Main Exception class. More...

+ Inheritance diagram for Sabre\DAV\Exception:
+ Collaboration diagram for Sabre\DAV\Exception:

Data Structures

class  LockedTest
 
class  PaymentRequiredTest
 
class  ServiceUnavailableTest
 
class  TooManyMatchesTest
 

Public Member Functions

 getHTTPCode ()
 Returns the HTTP statuscode for this exception. More...
 
 serialize (Server $server, \DOMElement $errorNode)
 This method allows the exception to include additional information into the WebDAV error response. More...
 
 getHTTPHeaders (Server $server)
 This method allows the exception to return any extra HTTP response headers. More...
 

Detailed Description

Main Exception class.

This class defines a getHTTPCode method, which should return the appropriate HTTP code for the Exception occurred. The default for this is 500.

This class also allows you to generate custom xml data for your exceptions. This will be displayed in the 'error' element in the failing response.

Author
Evert Pot (http://evertpot.com/) http://sabre.io/license/ Modified BSD License

Definition at line 18 of file Exception.php.

Member Function Documentation

◆ getHTTPCode()

Sabre\DAV\Exception::getHTTPCode ( )

Returns the HTTP statuscode for this exception.

Returns
int

Definition at line 25 of file Exception.php.

Referenced by Sabre\DAV\Server\exec().

25  {
26 
27  return 500;
28 
29  }
+ Here is the caller graph for this function:

◆ getHTTPHeaders()

Sabre\DAV\Exception::getHTTPHeaders ( Server  $server)

This method allows the exception to return any extra HTTP response headers.

The headers must be returned as an array.

Parameters
Server$server
Returns
array

Definition at line 51 of file Exception.php.

Referenced by Sabre\DAV\Server\exec().

51  {
52 
53  return [];
54 
55  }
+ Here is the caller graph for this function:

◆ serialize()

Sabre\DAV\Exception::serialize ( Server  $server,
\DOMElement  $errorNode 
)

This method allows the exception to include additional information into the WebDAV error response.

Parameters
Server$server
\DOMElement$errorNode
Returns
void

Definition at line 38 of file Exception.php.

Referenced by Sabre\DAV\Server\exec().

38  {
39 
40 
41  }
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: