This object is the exception handler

package OWR
used_by \OWR\Stream\Parser
used_by \OWR\CLI\Controller
used_by \OWR\View
used_by \OWR\DAO
used_by \OWR\Model\Objects
used_by \OWR\Model\Users
used_by \OWR\Model\News
used_by \OWR\Model\News\Tags
used_by \OWR\Model\Streams
used_by \OWR\Model\Streams\Groups
used_by \OWR\REST\Controller
used_by \OWR\OPML\Parser
used_by \OWR\Controller
used_by \OWR\Model
used_by \OWR\Cron
used_by \OWR\Theme
used_by \OWR\User
used_by \OWR\DB
used_by \OWR\DB\Request
used_by \OWR\DB\Result
used_by \OWR\Error
used_by \OWR\Session
used_by \OWR\Logs
used_by \OWR\Filter

 Methods

Constructor Will call Exception::__construct, send header if not already done

__construct(string $errstr, int $errcode) 
author Pierre-Alain Mignot
access public

Parameters

$errstr

string

the error message

$errcode

int

the error code

Executed when the object is used as a string Returns the contents of the exception

__toString() 
author Pierre-Alain Mignot
access public

Exception handler

exception_handler(mixed $exception) 
Static
author Pierre-Alain Mignot
access public
static

Parameters

$exception

mixed

the exception object

Return the error message if debug, else a standard message

getContent() 
author Pierre-Alain Mignot
access public

 Properties

 

list of errors type

$_type : array
access protected
static

 Constants

 

<p>custom error type</p>

E_OWR_BAD_REQUEST : int
 

<p>custom error type</p>

E_OWR_DIE : int
 

<p>custom error type</p>

E_OWR_NOTICE : int
 

<p>custom error type</p>

E_OWR_UNAUTHORIZED : int
 

<p>custom error type</p>

E_OWR_UNAVAILABLE : int
 

<p>custom error type</p>

E_OWR_WARNING : int