Overview

Namespaces

  • None
  • RedBeanPHP
    • Adapter
    • BeanHelper
    • Cursor
    • Driver
    • Logger
      • RDefault
    • QueryWriter
    • RedException
    • Repository
    • Util

Exceptions

  • SQL
  • Overview
  • Namespace
  • Class

Class SQL

SQL Exception. Represents a generic database exception independent of the underlying driver.

Exception
Extended by RedBeanPHP\RedException
Extended by RedBeanPHP\RedException\SQL
Namespace: RedBeanPHP\RedException
Copyright:

(c) copyright G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community. This source file is subject to the BSD/GPLv2 License that is bundled with this source code in the file license.txt.


License: BSD/GPLv2
Author: Gabor de Mooij and the RedBeanPHP Community
File: RedBeanPHP/RedException/SQL.php
Located at RedException/SQL.php
Methods summary
public string
# getSQLState( )

Returns an ANSI-92 compliant SQL state.

Returns an ANSI-92 compliant SQL state.

Returns

string
public
# setSQLState( string $sqlState )

Returns the raw SQL STATE, possibly compliant with ANSI SQL error codes - but this depends on database driver.

Returns the raw SQL STATE, possibly compliant with ANSI SQL error codes - but this depends on database driver.

Parameters

$sqlState
SQL state error code
public string
# __toString( )

To String prints both code and SQL state.

To String prints both code and SQL state.

Returns

string
Methods inherited from Exception
__construct(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties inherited from Exception
$code, $file, $line, $message
API documentation generated by ApiGen