PHP Класс GBException, gitblog

Наследование: extends Exception
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$css
$is_php53

Защищенные свойства (Protected)

Свойство Тип Описание
$_previous

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

__toString() публичный Метод

public __toString ( ) : string
Результат string

format() публичный статический Метод

Render a full HTML description of an exception
См. также: formatTrace()
public static format ( Exception $e, $includingTrace = true, $html = null, $skip = null, $context_lines = 2 ) : string
$e Exception
Результат string

formatFrame() публичный статический Метод

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

formatHTMLBlock() публичный статический Метод

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

formatHTMLDocument() публичный статический Метод

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

formatHtml() публичный статический Метод

Convenience method equivalent to calling self::format with $html=true.
См. также: format()
См. также: formatPlain()
public static formatHtml ( Exception $e, $includingTrace = true, $skip = null, $context_lines = 2 ) : string
$e Exception
Результат string

formatMessage() публичный Метод

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

formatPlain() публичный статический Метод

Convenience method equivalent to calling self::format with $html=false.
См. также: format()
См. также: formatHtml()
public static formatPlain ( Exception $e, $includingTrace = true, $skip = null, $context_lines = 2 ) : string
$e Exception
Результат string

formatSourceLines() публичный статический Метод

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

formatTrace() публичный статический Метод

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"
См. также: format()
public static formatTrace ( Exception $e, $html = null, $skip = null, $context_lines = 2 ) : string
$e Exception
Результат string

getPreviousCompat() публичный статический Метод

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

setFile() публичный Метод

set $file
public setFile ( $msg )

setLine() публичный Метод

set $line
public setLine ( $msg )

setMessage() публичный Метод

set $message
public setMessage ( $msg )

toHTML() публичный Метод

public toHTML ( ) : string
Результат string

Описание свойств

$_previous защищенное свойство

protected $_previous

$css публичное статическое свойство

public static $css

$is_php53 публичное статическое свойство

public static $is_php53