Module dev.metaschema.core
Class InvalidArgumentFunctionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.metaschema.core.metapath.MetapathException
dev.metaschema.core.metapath.function.FunctionMetapathError
dev.metaschema.core.metapath.function.InvalidArgumentFunctionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidValueForCastFunctionException
FORG: Exceptions related to argument types.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final interr:FORG0008: Raised by fn:dateTime if the two arguments both have timezones and the timezones are different.static final interr:FORG0005: Raised by fn:exactly-one if the supplied value is not a singleton sequence.static final interr:FORG0005: Raised by fn:one-or-more if the supplied value is an empty sequence.static final interr:FORG0002: Raised when either argument to fn:resolve-uri is not a valid URI/IRI.static final interr:FORG0006: Raised by functions such as fn:max, fn:min, fn:avg, fn:sum if the supplied sequence contains values inappropriate to this function.static final interr:FORG0003: Raised by fn:zero-or-one if the supplied value contains more than one item.static final interr:FORG0001: A general-purpose error raised when casting, if a cast between two datatypes is allowed in principle, but the supplied value cannot be converted: for example when attempting to cast the string "nine" to an integer. -
Constructor Summary
ConstructorsConstructorDescriptionInvalidArgumentFunctionException(int code, String message) Constructs a new exception with the providedcode,message, and no cause.InvalidArgumentFunctionException(int code, String message, Throwable cause) Constructs a new exception with the providedcode,message, andcause.InvalidArgumentFunctionException(int code, Throwable cause) Constructs a new exception with the providedcode, no message, and thecause. -
Method Summary
Methods inherited from class dev.metaschema.core.metapath.MetapathException
getErrorCode, getEvaluationStack, getMessage, getMessageText, registerEvaluationContext, registerEvaluationContext, registerEvaluationContextMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INVALID_VALUE_FOR_CAST
public static final int INVALID_VALUE_FOR_CASTerr:FORG0001: A general-purpose error raised when casting, if a cast between two datatypes is allowed in principle, but the supplied value cannot be converted: for example when attempting to cast the string "nine" to an integer.- See Also:
-
INVALID_ARGUMENT_TO_RESOLVE_URI
public static final int INVALID_ARGUMENT_TO_RESOLVE_URIerr:FORG0002: Raised when either argument to fn:resolve-uri is not a valid URI/IRI.- See Also:
-
INVALID_ARGUMENT_ZERO_OR_ONE
public static final int INVALID_ARGUMENT_ZERO_OR_ONEerr:FORG0003: Raised by fn:zero-or-one if the supplied value contains more than one item.- See Also:
-
INVALID_ARGUMENT_ONE_OR_MORE
public static final int INVALID_ARGUMENT_ONE_OR_MOREerr:FORG0005: Raised by fn:one-or-more if the supplied value is an empty sequence.- See Also:
-
INVALID_ARGUMENT_EXACTLY_ONE
public static final int INVALID_ARGUMENT_EXACTLY_ONEerr:FORG0005: Raised by fn:exactly-one if the supplied value is not a singleton sequence.- See Also:
-
INVALID_ARGUMENT_TYPE
public static final int INVALID_ARGUMENT_TYPEerr:FORG0006: Raised by functions such as fn:max, fn:min, fn:avg, fn:sum if the supplied sequence contains values inappropriate to this function.- See Also:
-
DATE_TIME_INCONSISTENT_TIMEZONE
public static final int DATE_TIME_INCONSISTENT_TIMEZONEerr:FORG0008: Raised by fn:dateTime if the two arguments both have timezones and the timezones are different.- See Also:
-
-
Constructor Details
-
InvalidArgumentFunctionException
Constructs a new exception with the providedcode,message, andcause.- Parameters:
code- the error code valuemessage- the exception messagecause- the original exception cause
-
InvalidArgumentFunctionException
Constructs a new exception with the providedcode,message, and no cause.- Parameters:
code- the error code valuemessage- the exception message
-
InvalidArgumentFunctionException
Constructs a new exception with the providedcode, no message, and thecause.- Parameters:
code- the error code valuecause- the original exception cause
-