Package org.apache.ignite.sql
Class SqlException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.ignite.lang.IgniteException
org.apache.ignite.sql.SqlException
- All Implemented Interfaces:
Serializable
,TraceableException
- Direct Known Subclasses:
NoRowSetExpectedException
,SqlBatchException
SQL exception base class.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSqlException
(int code) Creates an exception with the given error code.SqlException
(int code, @Nullable Throwable cause) Creates an exception with the given error code and cause.SqlException
(int code, String message) Creates an exception with the given error code and detailed message.SqlException
(int code, String message, @Nullable Throwable cause) Creates an exception with the given error code, detailed message and cause.SqlException
(UUID traceId, int code, @Nullable Throwable cause) Creates an exception with the given trace ID, error code, and cause.SqlException
(UUID traceId, int code, String message) Creates an exception with the given trace ID, error code, and detailed message.SqlException
(UUID traceId, int code, String message, @Nullable Throwable cause) Creates an exception with the given trace ID, error code, detailed message, and cause. -
Method Summary
Methods inherited from class org.apache.ignite.lang.IgniteException
code, codeAsString, errorCode, groupCode, groupName, toString, traceId
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
SqlException
public SqlException(int code) Creates an exception with the given error code.- Parameters:
code
- Full error code.
-
SqlException
Creates an exception with the given error code and detailed message.- Parameters:
code
- Full error code.message
- Detailed message.
-
SqlException
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
Creates an exception with the given error code and cause.- Parameters:
code
- Full error code.cause
- Optional nested exception (can benull
).
-
SqlException
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 benull
).
-
SqlException
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 benull
).
-
SqlException
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 benull
).
-