- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.nosql.NoSQLException
-
- jakarta.nosql.query.QuerySyntaxException
-
- All Implemented Interfaces:
Serializable
public class QuerySyntaxException extends NoSQLException
Exception thrown when there is a syntax error in the HQL.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description QuerySyntaxException()
Constructs a new runtime exception with null as its detail message.QuerySyntaxException(String message)
Constructs a new runtime exception with the specified detail message.QuerySyntaxException(String message, Throwable cause)
Constructs a new runtime exception with the specified detail message and cause.protected
QuerySyntaxException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Constructs a new runtime exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.QuerySyntaxException(Throwable cause)
Constructs a new runtime exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
QuerySyntaxException
public QuerySyntaxException()
Constructs a new runtime exception with null as its detail message.
-
QuerySyntaxException
public QuerySyntaxException(String message)
Constructs a new runtime exception with the specified detail message.- Parameters:
message
- the message
-
QuerySyntaxException
public QuerySyntaxException(String message, Throwable cause)
Constructs a new runtime exception with the specified detail message and cause.- Parameters:
message
- the messagecause
- the cause
-
QuerySyntaxException
public QuerySyntaxException(Throwable cause)
Constructs a new runtime exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).- Parameters:
cause
- the cause
-
QuerySyntaxException
protected QuerySyntaxException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Constructs a new runtime exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.- Parameters:
message
- the messagecause
- the causeenableSuppression
- the enableSuppressionwritableStackTrace
- the writableStackTrace
-
-