Flourish PHP Unframework

fExpectedException

class, v1.0.0b

An exception that should be handled by the display code

Changes:
1.0.0bThe initial implementation 6/14/07

Genealogy

Class Tree

Exception
   |
   --fException
      |
      --fExpectedException

Child Classes

fNoRemainingException
An exception caused when trying to get a value from an iterator and there is nothing left
fEmptySetException
An exception when an fRecordSet does not contain any elements
fAuthorizationException
An exception caused by an authorization error
fValidationException
An exception caused by a data not matching a rule or set of rules
fNoRowsException
An exception when no rows are returned from a SQL query
fNotFoundException
An exception when an fActiveRecord is not found in the database

Inherited Variables

$code
$file
$line
$message
$previous
$string
$trace

Inherited Methods

fException::__construct()
Sets the message for the exception, allowing for string interpolation and internationalization
fException::__get()
All requests that hit this method should be requests for callbacks
fException::compose()
Composes text using fText if loaded
fException::dump()
Creates a string representation of any variable using predefined strings for booleans, NULL and empty strings
fException::formatTrace()
Gets the backtrace to currently called exception
fException::getCSSClass()
Returns the CSS class name for printing information about the exception
fException::prepare()
Prepares content for output into HTML
fException::printMessage()
Prints the message inside of a div with the class being 'exception %THIS_EXCEPTION_CLASS_NAME%'
fException::printTrace()
Prints the backtrace to currently called exception inside of a pre tag with the class being 'exception %THIS_EXCEPTION_CLASS_NAME% trace'
fException::registerCallback()
Adds a callback for when certain types of exceptions are created
fException::reorderMessage()
Reorders list items in the message based on simple string matching
fException::setMessage()
Allows the message to be overwriten
fException::splitMessage()
Splits an exception with an HTML list into multiple strings each containing part of the original message
constructor __construct ( [$message = ], [$code = ], [$previous = ] )
__clone ( )
__toString ( )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getPrevious ( )
getTrace ( )
getTraceAsString ( )