public class WrongType extends WrappedException
Modifier and Type | Field and Description |
---|---|
static int |
ARG_CAST
number==ARG_CAST means a general cast. |
static int |
ARG_DESCRIPTION
number==ARG_DESCRIPTION means not a call,
procname describes the target. |
static int |
ARG_UNKNOWN
number==ARG_UNKNOWN means unknown argument number. |
static int |
ARG_VARNAME
number==ARG_VARNAME means not a call,
procname is a variable name. |
java.lang.Object |
argValue
The actual argument that was bad.
|
java.lang.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). |
java.lang.String |
procname
Name of
Procedure that threw the exception (if non-null). |
static java.lang.Object |
UNKNOWN |
Constructor and Description |
---|
WrongType(java.lang.ClassCastException ex,
Procedure proc,
int n,
java.lang.Object argValue) |
WrongType(java.lang.ClassCastException ex,
java.lang.String procname,
int n,
java.lang.Object argValue) |
WrongType(int n,
java.lang.Object argValue,
Type expectedType) |
WrongType(Procedure proc,
int n,
java.lang.ClassCastException ex) |
WrongType(Procedure proc,
int n,
java.lang.Object argValue) |
WrongType(Procedure proc,
int n,
java.lang.Object argValue,
java.lang.String expectedType) |
WrongType(Procedure proc,
int n,
java.lang.Object argValue,
Type expectedType) |
WrongType(java.lang.String procname,
int n,
java.lang.ClassCastException ex) |
WrongType(java.lang.String procName,
int n,
java.lang.Object argValue,
java.lang.String expectedType) |
WrongType(java.lang.String name,
int n,
java.lang.String u) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
static WrongType |
make(java.lang.ClassCastException ex,
Procedure proc,
int n)
Deprecated.
|
static WrongType |
make(java.lang.ClassCastException ex,
Procedure proc,
int n,
java.lang.Object argValue)
This interface is designed for a compact call sequence.
|
static WrongType |
make(java.lang.ClassCastException ex,
java.lang.String procname,
int n)
Deprecated.
|
static WrongType |
make(java.lang.ClassCastException ex,
java.lang.String procname,
int n,
java.lang.Object argValue)
This interface is designed for a compact call sequence.
|
getException, rethrow, toString, wrapIfNeeded
public final int number
>= 1
, or one of the values ARG_UNKNOWN
,
ARG_VARNAME
, or ARG_DESCRIPTION
.public static final int ARG_UNKNOWN
number==ARG_UNKNOWN
means unknown argument number.public static final int ARG_VARNAME
number==ARG_VARNAME
means not a call,
procname
is a variable name.public static final int ARG_DESCRIPTION
number==ARG_DESCRIPTION
means not a call,
procname
describes the target. (deprecated/unused)public static final int ARG_CAST
number==ARG_CAST
means a general cast.public java.lang.String procname
Procedure
that threw the exception (if non-null).public Procedure proc
Procedure
that threw the exception (if non-null).public final java.lang.Object argValue
public static final java.lang.Object UNKNOWN
public java.lang.Object expectedType
public WrongType(java.lang.String name, int n, java.lang.String u)
public WrongType(Procedure proc, int n, java.lang.ClassCastException ex)
public WrongType(java.lang.ClassCastException ex, Procedure proc, int n, java.lang.Object argValue)
public WrongType(Procedure proc, int n, java.lang.Object argValue)
public WrongType(int n, java.lang.Object argValue, Type expectedType)
public WrongType(Procedure proc, int n, java.lang.Object argValue, java.lang.String expectedType)
public WrongType(java.lang.String procName, int n, java.lang.Object argValue, java.lang.String expectedType)
public WrongType(java.lang.String procname, int n, java.lang.ClassCastException ex)
public WrongType(java.lang.ClassCastException ex, java.lang.String procname, int n, java.lang.Object argValue)
@Deprecated public static WrongType make(java.lang.ClassCastException ex, Procedure proc, int n)
@Deprecated public static WrongType make(java.lang.ClassCastException ex, java.lang.String procname, int n)
public static WrongType make(java.lang.ClassCastException ex, Procedure proc, int n, java.lang.Object argValue)
public static WrongType make(java.lang.ClassCastException ex, java.lang.String procname, int n, java.lang.Object argValue)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable