public class UnresolvedFunctionException extends ParseException
Modifier and Type | Field and Description |
---|---|
protected ADQLFunction |
functionInError
Function which can not be resolved.
|
currentToken, eol, expectedTokenSequences, position, tokenImage
Constructor and Description |
---|
UnresolvedFunctionException(ADQLFunction fct)
Build the exception with the unresolved function in parameter.
|
UnresolvedFunctionException(java.lang.String message)
Build the exception with just a message.
|
UnresolvedFunctionException(java.lang.String message,
ADQLFunction fct)
Build the exception with a message but also with the unresolved function in parameter.
|
UnresolvedFunctionException(java.lang.String message,
TextPosition pos)
Build the exception with just a message.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getFctSignature(ADQLFunction fct)
Get the signature of the function given in parameter.
|
ADQLFunction |
getFunction()
Get the unresolved function at the origin of this exception.
|
getPosition
protected final ADQLFunction functionInError
public UnresolvedFunctionException(java.lang.String message)
message
- Description of the error.public UnresolvedFunctionException(java.lang.String message, TextPosition pos)
message
- Description of the error.pos
- Position of the unresolved function inside the ADQL query.public UnresolvedFunctionException(ADQLFunction fct)
fct
- The unresolved function.public UnresolvedFunctionException(java.lang.String message, ADQLFunction fct)
message
- Description of the error.fct
- The unresolved function.public final ADQLFunction getFunction()
public static java.lang.String getFctSignature(ADQLFunction fct)
Get the signature of the function given in parameter.
In this signature, just the name and the type of all the parameters are written. The return type is never part of a function signature.
Note 1: A parameter type can be either "NUMERIC", "STRING" or "GEOMETRY". In order to be the most generic has possible, no more precision about a type is returned here. If the parameter is none of these type kinds, "param" suffixed by the parameter index (e.g. "param1") is returned.
Note 2: If the given object is NULL, an empty string is returned.
fct
- Function whose the signature must be returned.