PHP Mini Documentation

ErrorReporter
in package
implements ErrorReportingInterface

Error Reporting

PHP Mini Framework

Tags
copyright

busarm.com

license

https://github.com/Busarm/php-mini/blob/master/LICENSE (MIT License)

Interfaces, Classes, Traits and Enums

ErrorReportingInterface
PHP Mini Framework

Table of Contents

$breadCrumbs  : array<string|int, mixed>
leaveCrumbs()  : void
Leave breadcrumbs for issue tracking
reportError()  : void
Report Error
reportException()  : void
Report Exception
setupReporting()  : void
Set up error reporting
toString()  : string|null

Properties

$breadCrumbs

protected array<string|int, mixed> $breadCrumbs = []
Tags

Methods

leaveCrumbs()

Leave breadcrumbs for issue tracking

public leaveCrumbs(mixed $title[, array<string|int, mixed> $metadata = [] ]) : void
Parameters
$title : mixed
$metadata : array<string|int, mixed> = []
Tags
Return values
void

reportError()

Report Error

public reportError(string $heading, string $message[, string $file = null ][, int $line = null ]) : void
Parameters
$heading : string
$message : string
$file : string = null
$line : int = null
Tags
Return values
void

reportException()

Report Exception

public reportException(Throwable $exception) : void
Parameters
$exception : Throwable
Tags
Return values
void

setupReporting()

Set up error reporting

public setupReporting() : void
Tags
Return values
void

toString()

private toString(array<string|int, mixed>|object|null $msg) : string|null
Parameters
$msg : array<string|int, mixed>|object|null
Tags
Return values
string|null

        

Search results