PHP Class GBException, gitblog

Inheritance: extends Exception
ファイルを表示 Open project: rsms/gitblog Class Usage Examples

Public Properties

Property Type Description
$css
$is_php53

Protected Properties

Property Type Description
$_previous

Public Methods

Method Description
__construct ( $msg = null, $code, $previous = null, $file = null, $line )
__toString ( ) : string
format ( Exception $e, $includingTrace = true, $html = null, $skip = null, $context_lines = 2 ) : string Render a full HTML description of an exception
formatFrame ( $ti, $html = null, $context_lines = 2 )
formatHTMLBlock ( Exception $e, $includingTrace = true, $skip = null, $context_lines = 2, $inc_css = true )
formatHTMLDocument ( Exception $e, $includingTrace = true, $skip = null, $context_lines = 2 )
formatHtml ( Exception $e, $includingTrace = true, $skip = null, $context_lines = 2 ) : string Convenience method equivalent to calling self::format with $html=true.
formatMessage ( $html = null ) Get message for formatting. Subclasses can add additional information to the message here.
formatPlain ( Exception $e, $includingTrace = true, $skip = null, $context_lines = 2 ) : string Convenience method equivalent to calling self::format with $html=false.
formatSourceLines ( $file, $line, $html = null, $lines = 2 )
formatTrace ( Exception $e, $html = null, $skip = null, $context_lines = 2 ) : string Render a nice output of a backtrace from an exception
getPreviousCompat ( $e, $default = null )
setFile ( $msg ) set $file
setLine ( $msg ) set $line
setMessage ( $msg ) set $message
toHTML ( ) : string

Method Details

__construct() public method

public __construct ( $msg = null, $code, $previous = null, $file = null, $line )

__toString() public method

public __toString ( ) : string
return string

format() public static method

Render a full HTML description of an exception
See also: formatTrace()
public static format ( Exception $e, $includingTrace = true, $html = null, $skip = null, $context_lines = 2 ) : string
$e Exception
return string

formatFrame() public static method

public static formatFrame ( $ti, $html = null, $context_lines = 2 )

formatHTMLBlock() public static method

public static formatHTMLBlock ( Exception $e, $includingTrace = true, $skip = null, $context_lines = 2, $inc_css = true )
$e Exception

formatHTMLDocument() public static method

public static formatHTMLDocument ( Exception $e, $includingTrace = true, $skip = null, $context_lines = 2 )
$e Exception

formatHtml() public static method

Convenience method equivalent to calling self::format with $html=true.
See also: format()
See also: formatPlain()
public static formatHtml ( Exception $e, $includingTrace = true, $skip = null, $context_lines = 2 ) : string
$e Exception
return string

formatMessage() public method

Get message for formatting. Subclasses can add additional information to the message here.
public formatMessage ( $html = null )

formatPlain() public static method

Convenience method equivalent to calling self::format with $html=false.
See also: format()
See also: formatHtml()
public static formatPlain ( Exception $e, $includingTrace = true, $skip = null, $context_lines = 2 ) : string
$e Exception
return string

formatSourceLines() public static method

public static formatSourceLines ( $file, $line, $html = null, $lines = 2 )

formatTrace() public static method

The skip parameter - To skip a plain function, simply specify the function name. i.e. "__errorhandler" - To skip a class or instance method, specify "Class::methodName"
See also: format()
public static formatTrace ( Exception $e, $html = null, $skip = null, $context_lines = 2 ) : string
$e Exception
return string

getPreviousCompat() public static method

public static getPreviousCompat ( $e, $default = null )

setFile() public method

set $file
public setFile ( $msg )

setLine() public method

set $line
public setLine ( $msg )

setMessage() public method

set $message
public setMessage ( $msg )

toHTML() public method

public toHTML ( ) : string
return string

Property Details

$_previous protected_oe property

protected $_previous

$css public_oe static_oe property

public static $css

$is_php53 public_oe static_oe property

public static $is_php53