phpPeanuts  2.2.0
phpPeanuts framework
 All Data Structures Namespaces Files Functions Variables
Public Member Functions | Static Public Member Functions | Data Fields
PntError Class Reference

Inherits Exception.

Inherited by PntDbError, PntErrorException, PntReflectionError, and PntSecurityException.

Public Member Functions

 __construct ($message="", $code=0, $previous=NULL)
 
 getCause ()
 
 getDebugTrace ()
 
 getOrigin ()
 
 setOrigin ($value)
 
 getErrorTypeLabel ()
 
 getCauseDescription ()
 
 getLabel ()
 

Static Public Member Functions

static storeDebugTrace ($aBoolean=null)
 

Data Fields

 $origin
 
 $cause
 

Constructor & Destructor Documentation

__construct (   $message = "",
  $code = 0,
  $previous = NULL 
)

Member Function Documentation

getCause ( )

Replacement for getPrevious that also works on PHP versions < 5.3.0

getCauseDescription ( )
getDebugTrace ( )

Replacement for getTrace that includes object elements

getErrorTypeLabel ( )
getLabel ( )
getOrigin ( )
Returns
Object the object that created the exception (and probably threw it) WARNING: this value is only available if PntError::storeDebugTrace()
setOrigin (   $value)
static storeDebugTrace (   $aBoolean = null)
static

Field Documentation

$cause
$origin

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