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 int
number==ARG_CAST
means a general cast.static final int
number==ARG_DESCRIPTION
means not a call,procname
describes the target.static final int
number==ARG_UNKNOWN
means unknown argument number.static final int
number==ARG_VARNAME
means not a call,procname
is a variable name.final Object
The actual argument that was bad.The expected parameter type (a Type or TypeValue), or a string name/description.final int
Number of the argument, 1-origin.TheProcedure
that threw the exception (if non-null).Name ofProcedure
that 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 WrongType
make
(ClassCastException ex, Procedure proc, int n) Deprecated.static WrongType
make
(ClassCastException ex, Procedure proc, int n, Object argValue) This interface is designed for a compact call sequence.static WrongType
make
(ClassCastException ex, String procname, int n) Deprecated.static WrongType
make
(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, wrapIfNeeded
Methods 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_UNKNOWN
means unknown argument number.- See Also:
-
ARG_VARNAME
public static final int ARG_VARNAMEnumber==ARG_VARNAME
means not a call,procname
is a variable name.- See Also:
-
ARG_DESCRIPTION
public static final int ARG_DESCRIPTIONnumber==ARG_DESCRIPTION
means not a call,procname
describes the target. (deprecated/unused)- See Also:
-
ARG_CAST
public static final int ARG_CASTnumber==ARG_CAST
means a general cast.- See Also:
-
procname
Name ofProcedure
that threw the exception (if non-null). -
proc
TheProcedure
that 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:
getMessage
in classThrowable
-