|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException gnu.mapping.WrappedException gnu.mapping.WrongType
public class WrongType
Exception thrown when a procedure parameter has the wrong type.
Field Summary | |
---|---|
static int |
ARG_CAST
number==ARG_CAST means a general cast. |
static int |
ARG_DESCRIPTION
number==ARG_VARNAME 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). |
Constructor Summary | |
---|---|
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 name,
int n,
java.lang.String u)
|
Method Summary | |
---|---|
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. |
Methods inherited from class gnu.mapping.WrappedException |
---|
getException, toString, wrapIfNeeded |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int number
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. (deprecated/unused)
public static final int ARG_DESCRIPTION
number==ARG_VARNAME
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 java.lang.Object argValue
public java.lang.Object expectedType
Constructor Detail |
---|
public WrongType(java.lang.String name, int n, java.lang.String u)
public WrongType(Procedure proc, int n, java.lang.ClassCastException ex)
public WrongType(Procedure proc, int n, java.lang.Object argValue)
public WrongType(Procedure proc, 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.ClassCastException ex)
Method Detail |
---|
public static WrongType make(java.lang.ClassCastException ex, Procedure proc, int n)
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |