Class UnsupportedFeatureException

All Implemented Interfaces:
Serializable

public class UnsupportedFeatureException extends ParseException
Exception thrown when an ADQL language feature is used while declared as not supported.
Since:
2.0
See Also:
  • Field Details

    • unsupportedExpression

      protected final ADQLObject unsupportedExpression
      Function which can not be resolved.
  • Constructor Details

    • UnsupportedFeatureException

      public UnsupportedFeatureException(ADQLObject obj)
      Build the exception with the given unsupported expression.

      The error message will be automatically generated.

      Parameters:
      obj - [REQUIRED] The unsupported expression.
    • UnsupportedFeatureException

      public UnsupportedFeatureException(ADQLObject obj, String message)
      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

      protected static String buildDefaultMessage(ADQLObject obj)
    • getUnsupportedExpression

      public final ADQLObject getUnsupportedExpression()
      Get the unsupported expression.
      Returns:
      The unsupported expression
    • getUnsupportedLanguageFeature

      public final LanguageFeature getUnsupportedLanguageFeature()
      Get the description of the unsupported language feature.
      Returns:
      The unresolved language feature.