Public Member Functions | Public Attributes | Protected Attributes

BeditaException Class Reference

Bedita exceptions definitions, loaded from bootstrap.php. More...

Inheritance diagram for BeditaException:
BeditaAjaxException BEditaAllowURLException BeditaBadRequestException BeditaConflictException BEditaDeleteStreamObjException BEditaFileExistException BeditaForbiddenException BeditaFrontAccessException BeditaHashException BEditaInfoException BeditaInternalErrorException BEditaIOException BeditaMailException BEditaMediaProviderException BeditaMethodNotAllowedException BEditaMIMEException BeditaNotFoundException BeditaNotImplementedException BeditaPublicationException BeditaRuntimeException BEditaSaveStreamObjException BeditaServiceUnavailableException BeditaUnauthorizedException BEditaUploadPHPException BEditaURLException

List of all members.

Public Member Functions

 __construct ($message=NULL, $details=NULL, $res=self::ERROR, $code=500)
 Constructor.
 getDetails ()
 errorTrace ()
 getHttpCode ()
 Return httpCode for exception (null, if not set).
 getHeader ()
 Handling http status code header, according to $this->httpCode (if not set or code not handled, return null) Http codes handled: 401, 403, 404, 500.
 getCause ()
 Return the reason why the Exception was thrown.

Public Attributes

 $result
const ERROR = 'ERROR'

Protected Attributes

 $httpCode = null
 $errorDetails
 $cause = null

Detailed Description

Bedita exceptions definitions, loaded from bootstrap.php.

In general BEdita errors are interpreted as 500 http code errors.

Definition at line 28 of file bedita_exception.php.


Constructor & Destructor Documentation

BeditaException::__construct ( message = NULL,
details = NULL,
res = self::ERROR,
code = 500 
)

Constructor.

Parameters:
string $message If no message is given 'Unexpected error, operation failed' will be the message
mixed $details The exception details
$res The result status
int $code Status code, defaults to 500

Reimplemented in BeditaBadRequestException, BeditaUnauthorizedException, BeditaForbiddenException, BeditaNotFoundException, BeditaMethodNotAllowedException, BeditaConflictException, BeditaInternalErrorException, BeditaNotImplementedException, BeditaServiceUnavailableException, BeditaRuntimeException, BeditaAjaxException, BEditaFileExistException, BEditaUploadPHPException, BeditaPublicationException, and BeditaFrontAccessException.

Definition at line 58 of file bedita_exception.php.


Member Function Documentation

BeditaException::getCause (  ) 

Return the reason why the Exception was thrown.

Returns:
string|null

Definition at line 132 of file bedita_exception.php.

BeditaException::getHeader (  ) 

Handling http status code header, according to $this->httpCode (if not set or code not handled, return null) Http codes handled: 401, 403, 404, 500.

Deprecated:
Returns:
string|null

Definition at line 112 of file bedita_exception.php.

References getHttpCode().

BeditaException::getHttpCode (  ) 

Return httpCode for exception (null, if not set).

Returns:
number

Definition at line 101 of file bedita_exception.php.

Referenced by getHeader().


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:46 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus