JDatabaseExceptionExecuting

Extends \RuntimeException

Exception class defining an error executing a statement

since

3.6

package

Joomla.Platform

Methods

__construct

Construct the exception

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

3.6

Arguments

$query

stringThe SQL statement that was executed.

$message

stringThe Exception message to throw. [optional]

$code

integerThe Exception code. [optional]

$previous

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

getQuery

Get the SQL statement that was executed

getQuery() : string
since

3.6

Response

string

Properties

query

The SQL statement that was executed.

Type(s)

string