class SQLSrvException extends AbstractDriverException (View source)

Methods

__construct(string $message, string|null $sqlState = null, int $code = 0, Throwable|null $previous = null)

No description

getSQLState()

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

static 
fromSqlSrvErrors()

Helper method to turn sql server errors into exception.

Details

__construct(string $message, string|null $sqlState = null, int $code = 0, Throwable|null $previous = null)

Parameters

string $message The driver error message.
string|null $sqlState The SQLSTATE the driver is in at the time the error occurred, if any.
int $code The driver specific error code if any.
Throwable|null $previous The previous throwable used for the exception chaining.

getSQLState()

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

Returns null if the driver does not provide a SQLSTATE for the error occurred.

static fromSqlSrvErrors()

Helper method to turn sql server errors into exception.