Package java.sql

Class SQLNonTransientException

All Implemented Interfaces:
Serializable, Iterable<Throwable>
Direct Known Subclasses:
SQLDataException, SQLFeatureNotSupportedException, SQLIntegrityConstraintViolationException, SQLInvalidAuthorizationSpecException, SQLNonTransientConnectionException, SQLSyntaxErrorException

public class SQLNonTransientException
extends SQLException
See Also:
Serialized Form
  • Constructor Details

    • SQLNonTransientException

      public SQLNonTransientException()
      Creates an SQLNonTransientException object. The Reason string is set to null, the SQLState string is set to null and the Error Code is set to 0.
    • SQLNonTransientException

      public SQLNonTransientException​(String reason)
      Creates an SQLNonTransientException object. The Reason string is set to the given reason string, the SQLState string is set to null and the Error Code is set to 0.
      Parameters:
      reason - the string to use as the Reason string
    • SQLNonTransientException

      public SQLNonTransientException​(String reason, String sqlState)
      Creates an SQLNonTransientException object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the Error Code is set to 0.
      Parameters:
      reason - the string to use as the Reason string
      sqlState - the string to use as the SQLState string
    • SQLNonTransientException

      public SQLNonTransientException​(String reason, String sqlState, int vendorCode)
      Creates an SQLNonTransientException object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the Error Code is set to the given error code value.
      Parameters:
      reason - the string to use as the Reason string
      sqlState - the string to use as the SQLState string
      vendorCode - the integer value for the error code
    • SQLNonTransientException

      public SQLNonTransientException​(Throwable cause)
      Creates an SQLNonTransientException object. The Reason string is set to the null if cause == null or cause.toString() if cause!=null,and the cause Throwable object is set to the given cause Throwable object.
      Parameters:
      cause - the Throwable object for the underlying reason this SQLException
    • SQLNonTransientException

      public SQLNonTransientException​(String reason, Throwable cause)
      Creates an SQLNonTransientException object. The Reason string is set to the given and the cause Throwable object is set to the given cause Throwable object.
      Parameters:
      reason - the string to use as the Reason string
      cause - the Throwable object for the underlying reason this SQLException
    • SQLNonTransientException

      public SQLNonTransientException​(String reason, String sqlState, Throwable cause)
      Creates an SQLNonTransientException object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the cause Throwable object is set to the given cause Throwable object.
      Parameters:
      reason - the string to use as the Reason string
      sqlState - the string to use as the SQLState string
      cause - the Throwable object for the underlying reason this SQLException
    • SQLNonTransientException

      public SQLNonTransientException​(String reason, String sqlState, int vendorCode, Throwable cause)
      Creates an SQLNonTransientException object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string , the Error Code is set to the given error code value, and the cause Throwable object is set to the given cause Throwable object.
      Parameters:
      reason - the string to use as the Reason string
      sqlState - the string to use as the SQLState string
      vendorCode - the integer value for the error code
      cause - the Throwable object for the underlying reason this SQLException