Flourish PHP Unframework

fUnexpectedException

class, v1.0.0b2

An exception that should probably not be handled by the display code, fCore::enableExceptionHandler() is recommended

Changes:
1.0.0b2Updated printMessage() to use an ASCII dash to prevent encoding issues when an output encoding is not specified 5/9/11
1.0.0bThe initial implementation 6/14/07

Genealogy

Class Tree

Exception
   |
   --fException
      |
      --fUnexpectedException

Child Classes

fConnectivityException
An exception caused by a connectivity error
fSQLException
An exception occurred while executing a SQL statement
fProgrammerException
An exception caused by programmer error
fEnvironmentException
An exception caused by an environment error such a file permissions

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 ( )

Methods

->printMessage() public

Prints out a generic error message inside of a div with the class being 'exception {exception_class_name}'

Signature

void printMessage( )

Overrides

fException::printMessage()
Prints the message inside of a div with the class being 'exception %THIS_EXCEPTION_CLASS_NAME%'