gnu.mapping
public class WrongType extends WrappedException
Field Summary | |
---|---|
static int | ARG_CASTnumber==ARG_CAST means a general cast. |
static int | ARG_DESCRIPTIONnumber==ARG_DESCRIPTION means not a call,
procname describes the target. (deprecated/unused) |
static int | ARG_UNKNOWNnumber==ARG_UNKNOWN means unknown argument number. |
static int | ARG_VARNAMEnumber==ARG_VARNAME means not a call,
procname is a variable name. |
Object | argValue The actual argument that was bad. |
Object | expectedType The expected parameter type (a Type or TypeValue), or a string name/description. |
int | number Number of the argument, 1-origin.
|
Procedure | proc The Procedure that threw the exception (if non-null). |
String | procname Name of Procedure that threw the exception (if non-null). |
Constructor Summary | |
---|---|
WrongType(String name, int n, String u) | |
WrongType(Procedure proc, int n, ClassCastException ex) | |
WrongType(ClassCastException ex, Procedure proc, int n, Object argValue) | |
WrongType(Procedure proc, int n, Object argValue) | |
WrongType(Procedure proc, int n, Object argValue, Type expectedType) | |
WrongType(Procedure proc, int n, Object argValue, String expectedType) | |
WrongType(String procName, int n, Object argValue, String expectedType) | |
WrongType(String procname, int n, ClassCastException ex) | |
WrongType(ClassCastException ex, String procname, int n, Object argValue) |
Method Summary | |
---|---|
String | getMessage() |
static WrongType | make(ClassCastException ex, Procedure proc, int n) |
static WrongType | make(ClassCastException ex, String procname, int n) |
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, Object argValue) This interface is designed for a compact call sequence. |
number==ARG_CAST
means a general cast.number==ARG_DESCRIPTION
means not a call,
procname
describes the target. (deprecated/unused)number==ARG_UNKNOWN
means unknown argument number.number==ARG_VARNAME
means not a call,
procname
is a variable name.ARG_UNKNOWN
,
ARG_VARNAME
, or ARG_DESCRIPTION
.Procedure
that threw the exception (if non-null).Procedure
that threw the exception (if non-null).Deprecated:
Deprecated: