Module dev.metaschema.core
Class CastFunctionException
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.CastFunctionException
- All Implemented Interfaces:
Serializable
FOCA: Exceptions related to type casting.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final interr:FOCA0003: Raised when casting to xs:integer if the supplied value exceeds the implementation-defined limits for the datatype.static final interr:FOCA0002: Raised by fn:resolve-QName and fn:QName when a supplied value does not have the lexical form of a QName or URI respectively; and when casting to decimal, if the supplied value is NaN or Infinity. -
Constructor Summary
ConstructorsConstructorDescriptionCastFunctionException(int code, IAnyAtomicItem item, String message) Constructs a new exception with the providedcode,item, and no cause.CastFunctionException(int code, IAnyAtomicItem item, String message, Throwable cause) Constructs a new exception with the providedcode,item, andcause. -
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_LEXICAL_VALUE
public static final int INVALID_LEXICAL_VALUEerr:FOCA0002: Raised by fn:resolve-QName and fn:QName when a supplied value does not have the lexical form of a QName or URI respectively; and when casting to decimal, if the supplied value is NaN or Infinity.- See Also:
-
INPUT_VALUE_TOO_LARGE
public static final int INPUT_VALUE_TOO_LARGEerr:FOCA0003: Raised when casting to xs:integer if the supplied value exceeds the implementation-defined limits for the datatype.- See Also:
-
-
Constructor Details
-
CastFunctionException
Constructs a new exception with the providedcode,item, and no cause.- Parameters:
code- the error code valueitem- the item the exception applies tomessage- the exception message text
-
CastFunctionException
public CastFunctionException(int code, @NonNull IAnyAtomicItem item, String message, Throwable cause) Constructs a new exception with the providedcode,item, andcause.- Parameters:
code- the error code valueitem- the item the exception applies tomessage- the exception message textcause- the original exception cause
-
-
Method Details
-
getItem
Get the item associated with the exception.- Returns:
- the associated item
-