Unverified Commit 1c42543c authored by Sergei Morozov's avatar Sergei Morozov Committed by GitHub

Merge pull request #4112 from morozov/deprecate-driver-exception-error-code

Deprecate DriverException::getErrorCode()
parents d7b24f15 f01c923d
# Upgrade to 2.11 # Upgrade to 2.11
## `DriverException::getErrorCode()` is deprecated
The `DriverException::getErrorCode()` is deprecated as redundant and inconsistently supported by drivers. Use `::getCode()` or `::getSQLState()` instead.
## Non-interface driver methods have been marked internal ## Non-interface driver methods have been marked internal
The non-interface methods of driver-level classes have been marked internal: The non-interface methods of driver-level classes have been marked internal:
......
...@@ -14,6 +14,8 @@ interface Exception extends Throwable ...@@ -14,6 +14,8 @@ interface Exception extends Throwable
/** /**
* Returns the driver specific error code if available. * Returns the driver specific error code if available.
* *
* @deprecated Use {@link getCode()} or {@link getSQLState()} instead
*
* Returns null if no driver specific error code is available * Returns null if no driver specific error code is available
* for the error raised by the driver. * for the error raised by the driver.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment