Skip to content

exceptionMsg

Corey Avis edited this page Sep 23, 2026 · 2 revisions

exceptionMsg

Accepts a caught exception object, generates a stylized developer debug block, writes to the server error log, and strictly halts script execution.

Usage

exceptionMsg(\Throwable $exception): void

Parameters

exception : Any native object implementing PHP's Throwable interface (Exceptions or Errors).

Return Value

(void) : Returns no value.

Terminates execution via exit(1). The stylish debug visual will render to the screen only if display_errors is enabled or if the debug configuration option evaluates to true.

Related Methods

error | errorMsg


Home | CoreyPHP | Error Handling

Clone this wiki locally