| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException gnu.mapping.WrappedException gnu.mapping.WrongType
WrongType | public class WrongType extends WrappedException (Code) | | Exception thrown when a procedure parameter has the wrong type.
|
Field Summary | |
final public static int | ARG_CAST number==ARG_CAST means a general cast. | final public static int | ARG_DESCRIPTION number==ARG_DESCRIPTION means not a call,
procname describes the target. | final public static int | ARG_UNKNOWN number==ARG_UNKNOWN means unknown argument number. | final public static int | ARG_VARNAME number==ARG_VARNAME means not a call,
procname is a variable name. | public Object | argValue The actual argument that was bad. | public Object | expectedType The expected parameter type (a Type or TypeValue), or a string name/description. | public int | number Number of the argument, 1-origin. | public Procedure | proc The Procedure that threw the exception (if non-null). | public String | procname Name of Procedure that threw the exception (if non-null). |
Constructor Summary | |
public | WrongType(String name, int n, String u) | public | WrongType(Procedure proc, int n, ClassCastException ex) | public | WrongType(ClassCastException ex, Procedure proc, int n, Object argValue) | public | WrongType(Procedure proc, int n, Object argValue) | public | WrongType(Procedure proc, int n, Object argValue, Type expectedType) | public | WrongType(Procedure proc, int n, Object argValue, String expectedType) | public | WrongType(String procName, int n, Object argValue, String expectedType) | public | WrongType(String procname, int n, ClassCastException ex) | public | WrongType(ClassCastException ex, String procname, int n, Object argValue) |
Method Summary | |
public String | getMessage() | public static WrongType | make(ClassCastException ex, Procedure proc, int n) | public static WrongType | make(ClassCastException ex, String procname, int n) | public static WrongType | make(ClassCastException ex, Procedure proc, int n, Object argValue) This interface is designed for a compact call sequence. | public static WrongType | make(ClassCastException ex, String procname, int n, Object argValue) This interface is designed for a compact call sequence. |
ARG_CAST | final public static int ARG_CAST(Code) | | number==ARG_CAST means a general cast.
|
ARG_DESCRIPTION | final public static int ARG_DESCRIPTION(Code) | | number==ARG_DESCRIPTION means not a call,
procname describes the target. (deprecated/unused)
|
ARG_UNKNOWN | final public static int ARG_UNKNOWN(Code) | | number==ARG_UNKNOWN means unknown argument number.
|
ARG_VARNAME | final public static int ARG_VARNAME(Code) | | number==ARG_VARNAME means not a call,
procname is a variable name.
|
argValue | public Object argValue(Code) | | The actual argument that was bad.
|
expectedType | public Object expectedType(Code) | | The expected parameter type (a Type or TypeValue), or a string name/description.
|
number | public int number(Code) | | Number of the argument, 1-origin.
Can be an integer >= 1, or one of the values ARG_UNKNOWN ,
ARG_VARNAME , or ARG_DESCRIPTION .
|
proc | public Procedure proc(Code) | | The Procedure that threw the exception (if non-null).
|
procname | public String procname(Code) | | Name of Procedure that threw the exception (if non-null).
|
|
|