Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
Exception Class Reference

Exception class use exceptionCode to identifiy correctly exception. More...

+ Inheritance diagram for Exception:
+ Collaboration diagram for Exception:

Public Member Functions

 __construct ($message, $argCode=0)
 
 getDcpCode ()
 
 getDcpMessage ()
 
 __toString ()
 
 addHttpHeader ($header)
 
 getHttpHeader ()
 

Detailed Description

Exception class use exceptionCode to identifiy correctly exception.

Author
Anakeen

Definition at line 19 of file exceptions.php.

Constructor & Destructor Documentation

__construct (   $message,
  $argCode = 0 
)

Redefined exception : message text is mandatory now

Parameters
string$messageerror message or code error

Definition at line 27 of file exceptions.php.

Member Function Documentation

__toString ( )

Definition at line 74 of file exceptions.php.

addHttpHeader (   $header)

Definition at line 79 of file exceptions.php.

getDcpCode ( )

return code error from constant of ErrorCode Class

Returns
string

Definition at line 51 of file exceptions.php.

getDcpMessage ( )

return code error from constant of ErrorCode Class

Returns
string

Definition at line 63 of file exceptions.php.

getHttpHeader ( )

Definition at line 83 of file exceptions.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen