Class SqlException

All Implemented Interfaces:
Serializable, TraceableException
Direct Known Subclasses:
NoRowSetExpectedException, SqlBatchException

public class SqlException extends IgniteException
SQL exception base class.
See Also:
  • Constructor Details

    • SqlException

      public SqlException(int code)
      Creates an exception with the given error code.
      Parameters:
      code - Full error code.
    • SqlException

      public SqlException(int code, String message)
      Creates an exception with the given error code and detailed message.
      Parameters:
      code - Full error code.
      message - Detailed message.
    • SqlException

      public SqlException(UUID traceId, int code, String message)
      Creates an exception with the given trace ID, error code, and detailed message.
      Parameters:
      traceId - Unique identifier of the exception.
      code - Full error code.
      message - Detailed message.
    • SqlException

      public SqlException(int code, @Nullable @Nullable Throwable cause)
      Creates an exception with the given error code and cause.
      Parameters:
      code - Full error code.
      cause - Optional nested exception (can be null).
    • SqlException

      public SqlException(UUID traceId, int code, @Nullable @Nullable Throwable cause)
      Creates an exception with the given trace ID, error code, and cause.
      Parameters:
      traceId - Unique identifier of the exception.
      code - Full error code.
      cause - Optional nested exception (can be null).
    • SqlException

      public SqlException(int code, String message, @Nullable @Nullable Throwable cause)
      Creates an exception with the given error code, detailed message and cause.
      Parameters:
      code - Full error code.
      message - Detailed message.
      cause - Optional nested exception (can be null).
    • SqlException

      public SqlException(UUID traceId, int code, String message, @Nullable @Nullable Throwable cause)
      Creates an exception with the given trace ID, error code, detailed message, and cause.
      Parameters:
      traceId - Unique identifier of the exception.
      code - Full error code.
      message - Detailed message.
      cause - Optional nested exception (can be null).