FacturaScripts

CrashReport
in package

FinalYes

La clase que se encarga de gestionar los errores fatales.

Table of Contents

Methods

getErrorFragment()  : string
getErrorInfo()  : array<string|int, mixed>
init()  : void
newToken()  : string
save()  : void
shutdown()  : void
validateToken()  : bool
canShowDebugInfo()  : bool
canShowDeployButtons()  : bool
formatErrorMessage()  : string
getCodeFragmentCard()  : string
getLogCard()  : string
showCliError()  : void
showHtmlError()  : void
showJsonError()  : void
showTextError()  : void
trans()  : string

Methods

getErrorFragment()

public static getErrorFragment(string $file, int $line[, int $linesToShow = 10 ][, bool $html = false ]) : string
Parameters
$file : string
$line : int
$linesToShow : int = 10
$html : bool = false
Return values
string

getErrorInfo()

public static getErrorInfo(int $code, string $message, string $file, int $line) : array<string|int, mixed>
Parameters
$code : int
$message : string
$file : string
$line : int
Return values
array<string|int, mixed>

newToken()

public static newToken() : string
Return values
string

save()

public static save(array<string|int, mixed> $info) : void
Parameters
$info : array<string|int, mixed>

validateToken()

public static validateToken(string $token) : bool
Parameters
$token : string
Return values
bool

canShowDebugInfo()

private static canShowDebugInfo() : bool
Return values
bool

canShowDeployButtons()

private static canShowDeployButtons() : bool
Return values
bool

formatErrorMessage()

private static formatErrorMessage(string $message) : string
Parameters
$message : string
Return values
string

getCodeFragmentCard()

private static getCodeFragmentCard(array<string|int, mixed> $info, array<string|int, mixed> $messageParts, array<string|int, mixed> $error) : string
Parameters
$info : array<string|int, mixed>
$messageParts : array<string|int, mixed>
$error : array<string|int, mixed>
Return values
string

getLogCard()

private static getLogCard() : string
Return values
string

showCliError()

private static showCliError(array<string|int, mixed> $info, array<string|int, mixed> $error) : void
Parameters
$info : array<string|int, mixed>
$error : array<string|int, mixed>

showHtmlError()

private static showHtmlError(array<string|int, mixed> $info, array<string|int, mixed> $error) : void
Parameters
$info : array<string|int, mixed>
$error : array<string|int, mixed>

showJsonError()

private static showJsonError(array<string|int, mixed> $info) : void
Parameters
$info : array<string|int, mixed>

showTextError()

private static showTextError(array<string|int, mixed> $info) : void
Parameters
$info : array<string|int, mixed>

trans()

private static trans(string $code) : string
Parameters
$code : string
Return values
string

        
On this page

Search results