ExecutionFailureException

Extends \RuntimeException

Exception class defining an error executing a statement

since

1.5.0

Methods

__construct

Construct the exception

__construct(string $query, string $message = '', integer $code, \Joomla\Database\Exception\Exception $previous = null) 
since

1.5.0

Arguments

$query

stringThe SQL statement that was executed.

$message

stringThe Exception message to throw. [optional]

$code

integerThe Exception code. [optional]

$previous

\Joomla\Database\Exception\ExceptionThe previous exception used for the exception chaining. [optional]

getQuery

Get the SQL statement that was executed

getQuery() : string
since

1.5.0

Response

string

Properties

query

The SQL statement that was executed.

since

1.5.0

Type(s)

string