Package gnu.mapping
Class WrongType
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
gnu.mapping.WrappedException
gnu.mapping.WrongType
- All Implemented Interfaces:
Serializable
Exception thrown when a procedure parameter has the wrong type.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intnumber==ARG_CASTmeans a general cast.static final intnumber==ARG_DESCRIPTIONmeans not a call,procnamedescribes the target.static final intnumber==ARG_UNKNOWNmeans unknown argument number.static final intnumber==ARG_VARNAMEmeans not a call,procnameis a variable name.final ObjectThe actual argument that was bad.The expected parameter type (a Type or TypeValue), or a string name/description.final intNumber of the argument, 1-origin.TheProcedurethat threw the exception (if non-null).Name ofProcedurethat threw the exception (if non-null).static final Object -
Constructor Summary
ConstructorsConstructorDescriptionWrongType(Procedure proc, int n, ClassCastException ex) WrongType(ClassCastException ex, Procedure proc, int n, Object argValue) WrongType(ClassCastException ex, String procname, int n, Object argValue) WrongType(String procname, int n, ClassCastException ex) -
Method Summary
Modifier and TypeMethodDescriptionstatic WrongTypemake(ClassCastException ex, Procedure proc, int n) Deprecated.static WrongTypemake(ClassCastException ex, Procedure proc, int n, Object argValue) This interface is designed for a compact call sequence.static WrongTypemake(ClassCastException ex, String procname, int n) Deprecated.static WrongTypemake(ClassCastException ex, String procname, int n, Object argValue) This interface is designed for a compact call sequence.Methods inherited from class gnu.mapping.WrappedException
getException, rethrow, toString, wrapIfNeededMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
number
public final int numberNumber of the argument, 1-origin.
Can be an integer>= 1, or one of the valuesARG_UNKNOWN,ARG_VARNAME, orARG_DESCRIPTION. -
ARG_UNKNOWN
public static final int ARG_UNKNOWNnumber==ARG_UNKNOWNmeans unknown argument number.- See Also:
-
ARG_VARNAME
public static final int ARG_VARNAMEnumber==ARG_VARNAMEmeans not a call,procnameis a variable name.- See Also:
-
ARG_DESCRIPTION
public static final int ARG_DESCRIPTIONnumber==ARG_DESCRIPTIONmeans not a call,procnamedescribes the target. (deprecated/unused)- See Also:
-
ARG_CAST
public static final int ARG_CASTnumber==ARG_CASTmeans a general cast.- See Also:
-
procname
Name ofProcedurethat threw the exception (if non-null). -
proc
TheProcedurethat threw the exception (if non-null). -
argValue
The actual argument that was bad. -
UNKNOWN
-
expectedType
The expected parameter type (a Type or TypeValue), or a string name/description.
-
-
Constructor Details
-
WrongType
-
WrongType
-
WrongType
-
WrongType
-
WrongType
-
WrongType
-
WrongType
-
WrongType
-
WrongType
-
WrongType
-
-
Method Details
-
make
Deprecated. -
make
Deprecated. -
make
This interface is designed for a compact call sequence. -
make
This interface is designed for a compact call sequence. -
getMessage
- Overrides:
getMessagein classThrowable
-