Documentation

Whoops

Table of Contents

$setEditor  : string
Current editor that to be use.
$editors  : array<string|int, mixed>
A list of known editor strings.
$stack  : array<string|int, mixed>
Store the errors stack.
__construct()  : mixed
__construct.
appendEditor()  : void
Appen the editor.
error()  : mixed
Error handler.
exception()  : mixed
Exception handler.
getEditor()  : mixed
Get the editor uri.
getEnvironment()  : array<string|int, mixed>
Get the Environment details.
getRequests()  : array<string|int, mixed>
Get the requests details.
getSolution()  : array<string|int, mixed>
Get the solution.
render()  : mixed
Rander the error.
setEditor()  : mixed
Get the editor uri.
getPreviewCode()  : void
Get the code from file.
setParams()  : mixed
Set the error item to stack.

Properties

$setEditor

Current editor that to be use.

public string $setEditor = ''
Tags
since
1.0.0

$editors

A list of known editor strings.

private array<string|int, mixed> $editors = ['sublime' => 'subl://open?url=file://::file&line=::line', 'vscode' => 'vscode://file::file&line=::line']
Tags
since
1.0.0

$stack

Store the errors stack.

private array<string|int, mixed> $stack = []
Tags
since
1.0.0

Methods

__construct()

__construct.

public __construct() : mixed
Tags
since
1.0.0
Return values
mixed

appendEditor()

Appen the editor.

public appendEditor(string $key, string $uri) : void
Parameters
$key : string

editor name

$uri : string

valid url string pattern

Tags
since
1.0.0
Return values
void

error()

Error handler.

public error(mixed $code, mixed $msg, mixed $file, mixed $line) : mixed
Parameters
$code : mixed
$msg : mixed
$file : mixed
$line : mixed
Tags
since
1.0.0
Return values
mixed

exception()

Exception handler.

public exception(mixed $e) : mixed
Parameters
$e : mixed
Tags
since
1.0.0
Return values
mixed

getEditor()

Get the editor uri.

public getEditor(string $key) : mixed
Parameters
$key : string

editor name

Tags
since
1.0.0
Return values
mixed

getEnvironment()

Get the Environment details.

public getEnvironment() : array<string|int, mixed>
Tags
since
1.0.0
Return values
array<string|int, mixed>

getRequests()

Get the requests details.

public getRequests() : array<string|int, mixed>
Tags
since
1.0.0
Return values
array<string|int, mixed>

getSolution()

Get the solution.

public getSolution() : array<string|int, mixed>
Tags
todo
Return values
array<string|int, mixed>

render()

Rander the error.

public render() : mixed
Tags
since
1.0.0
Return values
mixed

setEditor()

Get the editor uri.

public setEditor(string $key) : mixed
Parameters
$key : string

editor name

Tags
since
1.0.0
Return values
mixed

getPreviewCode()

Get the code from file.

protected getPreviewCode() : void
Tags
since
1.0.0
Return values
void

setParams()

Set the error item to stack.

protected setParams(int $code, string $msg, string $file, int $line, string $trace, mixed $traces) : mixed
Parameters
$code : int
$msg : string
$file : string
$line : int
$trace : string
$traces : mixed
Tags
since
1.0.0
Return values
mixed

Search results