Documentation

SQLAnywhereException extends AbstractDriverException
in package

SAP Sybase SQL Anywhere driver exception.

Tags
author

Steve Müller st.mueller@dzh-online.de

link
www.doctrine-project.org
since
2.5

Table of Contents

$errorCode  : int|string|null
The driver specific error code.
$sqlState  : string|null
The SQLSTATE of the driver.
__construct()  : mixed
Constructor.
fromSQLAnywhereError()  : SQLAnywhereException
Helper method to turn SQL Anywhere error into exception.
getErrorCode()  : int|string|null
Returns the driver specific error code if available.
getSQLState()  : string|null
Returns the SQLSTATE the driver was in at the time the error occurred.

Properties

Methods

__construct()

Constructor.

public __construct(string $message[, string|null $sqlState = null ][, int|string|null $errorCode = null ]) : mixed
Parameters
$message : string

The driver error message.

$sqlState : string|null = null

The SQLSTATE the driver is in at the time the error occured, if any.

$errorCode : int|string|null = null

The driver specific error code if any.

Return values
mixed

fromSQLAnywhereError()

Helper method to turn SQL Anywhere error into exception.

public static fromSQLAnywhereError([resource|null $conn = null ][, resource|null $stmt = null ]) : SQLAnywhereException
Parameters
$conn : resource|null = null

The SQL Anywhere connection resource to retrieve the last error from.

$stmt : resource|null = null

The SQL Anywhere statement resource to retrieve the last error from.

Tags
throws
InvalidArgumentException
Return values
SQLAnywhereException

getErrorCode()

Returns the driver specific error code if available.

public getErrorCode() : int|string|null
Return values
int|string|null

getSQLState()

Returns the SQLSTATE the driver was in at the time the error occurred.

public getSQLState() : string|null
Return values
string|null

Search results