public class IllegalParameterException extends EvaluationException
Constructor and Description |
---|
IllegalParameterException(PostfixMathCommandI pfmc,
int pos,
java.lang.Class<?> expectedClass,
java.lang.Object actualObject)
Exception where the target type is known.
|
IllegalParameterException(PostfixMathCommandI pfmc,
int pos,
java.lang.String expectedMsg,
java.lang.Object actualObject)
Exception where a specific message is given for the expected type
|
IllegalParameterException(PostfixMathCommand pfmc,
int pos,
java.lang.Object value)
An exception where the expected type is not known.
|
IllegalParameterException(PostfixMathCommand pfmc,
java.lang.Object arg1,
java.lang.Object arg2)
An exception where two arguments are incompatible.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getActualClass() |
java.lang.Object |
getActualObject() |
int |
getArgumentNumber() |
java.lang.Class<?> |
getExpectedClass() |
java.lang.String |
getFunctionName() |
java.lang.String |
getMessage() |
PostfixMathCommandI |
getPfmc() |
public IllegalParameterException(PostfixMathCommandI pfmc, int pos, java.lang.Class<?> expectedClass, java.lang.Object actualObject)
pfmc
- the object generating the exceptionpos
- position in the argument list, 0 is the first argumentexpectedClass
- the expected class of the argumentactualObject
- the actual value of the argumentpublic IllegalParameterException(PostfixMathCommandI pfmc, int pos, java.lang.String expectedMsg, java.lang.Object actualObject)
pfmc
- the object generating the exceptionpos
- position in the argument list, 0 is the first argumentexpectedMsg
- message to display about expected object typeactualObject
- the actual value of the argumentpublic IllegalParameterException(PostfixMathCommand pfmc, int pos, java.lang.Object value)
pfmc
- the object generating the exceptionpos
- position in the argument list, 0 is the first argumentvalue
- the actual value of the argumentpublic IllegalParameterException(PostfixMathCommand pfmc, java.lang.Object arg1, java.lang.Object arg2)
pfmc
- the object generating the exceptionarg1
- first argumentarg2
- second argumentpublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getFunctionName()
public int getArgumentNumber()
public java.lang.Class<?> getExpectedClass()
public java.lang.Object getActualObject()
public java.lang.Class<?> getActualClass()
public PostfixMathCommandI getPfmc()
Copyright © 2018 Singular Systems http://www.singularsys.com/jep