Sections

Class Phalcon\Exception

extends class Exception

implements Throwable

Source on GitHub

Methods

public function __construct( [string $message = "" [, int $code = 0 [, \Throwable $previous = NULL ]]] )

Exception constructor

final private function __clone(): void

Clone the object

public function __toString(): string

String representation of the exception

final public function getMessage(): string

Gets the Exception message

final public function getCode(): int

Gets the Exception code

final public function getFile(): string

Gets the file in which the exception occurred

final public function getLine(): int

Gets the line in which the exception occurred

final public function getTrace(): array

Gets the stack trace

final public function getPrevious(): \Throwable

Returns previous Exception

final public function getTraceAsString(): string

Gets the stack trace as a string