Class WFException

Description

A helper class to easily throw named exceptions.

The "name" field has been added for consistency with the way Cocoa handles exceptions. This allows components to easily define "exception names" in the conventional format of:

  1.  define('MyProblemException''MyProblemException');

Using named exceptions makes it easier to keep track of exceptions across than with exception codes.

  • todo: Need to have all PHOCOA exceptions that are thrown switched to WFException so code can distinguish b/w PHOCOA and external exceptions.

Located in /framework/WFException.php (line 24)

Exception
   |
   --WFException
Direct descendents
Class Description
WFDieselSearch_ParseException A helper class to easily throw named exceptions.
WFErrorsException A special WFException subclass meant for carrying multiple WFError objects.
WFUndefinedKeyException Exceptions for KVC.
WFRedirectRequestException Helper class to allow modules to easily redirect the client to a given URL.
WFRequestController_NotFoundException A helper class to easily throw named exceptions.
WFRequestController_BadRequestException A helper class to easily throw named exceptions.
Variables

Inherited Variables

Inherited from Exception (Internal Class)

$code
$file
$line
$message
$string
$trace
Methods

Inherited Methods

Inherited From Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )

Documentation generated on Thu, 14 May 2009 16:19:59 -0400 by phpDocumentor 1.4.2