Neuron-PHP

RepositoryException extends CmsException
in package

Exception thrown when repository operations fail

Table of Contents

Properties

$userMessage  : string

Methods

__construct()  : mixed
getUserMessage()  : string
Get user-friendly error message safe for display
shouldLog()  : bool
Repository errors should always be logged

Properties

Methods

__construct()

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

Operation that failed (e.g., "save", "delete")

$entityType : string

Type of entity

$details : string|null = null

Additional details about the failure

$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()

Repository errors should always be logged

public shouldLog() : bool
Return values
bool

        
On this page

Search results