Neuron-PHP

CmsException extends RuntimeException
in package

Base exception for all CMS-specific exceptions

Table of Contents

Properties

$userMessage  : string

Methods

__construct()  : mixed
getUserMessage()  : string
Get user-friendly error message safe for display
shouldLog()  : bool
Check if this exception should be logged

Properties

Methods

__construct()

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

Technical error message (for logs)

$userMessage : string|null = null

User-friendly error message (for display)

$code : int = 0

Error code

$previous : Throwable|null = null

Previous exception

getUserMessage()

Get user-friendly error message safe for display

public getUserMessage() : string
Return values
string

shouldLog()

Check if this exception should be logged

public shouldLog() : bool
Return values
bool

        
On this page

Search results