GBException::formatPlain PHP Method

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
    public static function formatPlain(Exception $e, $includingTrace = true, $skip = null, $context_lines = 2)
    {
        return self::format($e, $includingTrace, false, $skip, $context_lines);
    }

Usage Example

コード例 #1
0
ファイル: data.php プロジェクト: rsms/gitblog
function rsp_exc($e)
{
    rsp_err(GBException::formatPlain($e, false, null, 0), '500 Internal Server Error', array_filter(array_map('trim', explode("\n", GBException::formatTrace($e, false, null, 0)))));
}