Documentation

CLoggerException extends Exception
in package

Custom exception for the Logger component.

This exception allows tracking the severity level of the error, providing more context than a standard Exception.

Table of Contents

Properties

$level  : string
The severity level of the error (e.g., 'CRITICAL', 'WARNING').

Methods

__construct()  : mixed
Constructor for CLoggerException.
__toString()  : string
Gets a string representation of the exception.
GetLevel()  : string
Gets the severity level of the error.

Properties

$level

The severity level of the error (e.g., 'CRITICAL', 'WARNING').

protected string $level

Methods

__construct()

Constructor for CLoggerException.

public __construct([string $message = "" ][, string $level = 'ERROR' ][, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
$message : string = ""

The Exception message to throw.

$level : string = 'ERROR'

The severity level of the error.

$code : int = 0

The Exception code.

$previous : Throwable|null = null

The previous throwable used for the exception chaining.

__toString()

Gets a string representation of the exception.

public __toString() : string
Return values
string —

The string representation of the exception.

GetLevel()

Gets the severity level of the error.

public GetLevel() : string
Return values
string —

The severity level.


        
On this page

Search results