Package adql.db.exception
Class UnsupportedFeatureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
adql.parser.grammar.ParseException
adql.db.exception.UnsupportedFeatureException
- All Implemented Interfaces:
Serializable
Exception thrown when an ADQL language feature is used while declared as not
supported.
- Since:
- 2.0
- See Also:
-
Field Summary
FieldsFields inherited from class adql.parser.grammar.ParseException
currentToken, EOL, expectedTokenSequences, position, tokenImage
-
Constructor Summary
ConstructorsConstructorDescriptionBuild the exception with the given unsupported expression.UnsupportedFeatureException
(ADQLObject obj, String message) Build the exception with the given message and the given unsupported expression. -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
final ADQLObject
Get the unsupported expression.final LanguageFeature
Get the description of the unsupported language feature.Methods inherited from class adql.parser.grammar.ParseException
getPosition
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
unsupportedExpression
Function which can not be resolved.
-
-
Constructor Details
-
UnsupportedFeatureException
Build the exception with the given unsupported expression.The error message will be automatically generated.
- Parameters:
obj
- [REQUIRED] The unsupported expression.
-
UnsupportedFeatureException
Build the exception with the given message and the given unsupported expression.If no message is provided, a default one will be generated by using the given ADQL expression.
- Parameters:
obj
- [REQUIRED] The unsupported expression.message
- [OPTIONAL] Custom error message.
-
-
Method Details
-
buildDefaultMessage
-
getUnsupportedExpression
Get the unsupported expression.- Returns:
- The unsupported expression
-
getUnsupportedLanguageFeature
Get the description of the unsupported language feature.- Returns:
- The unresolved language feature.
-