|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
cds.simbad.ident.IdentifierDescriptionException
Exception class for identifier description analysis The exception objects are created by factory methods.
Field Summary | |
(package private) int |
code
|
(package private) java.lang.String |
instr
|
static int |
INVALID_PARAM
|
static int |
NOVALUE
|
(package private) int |
pos
|
static int |
UNKNOWN_INSTRUCTION
|
static int |
UNKNOWN_PARAM
|
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary | |
IdentifierDescriptionException(int code,
java.lang.String instr,
int pos)
Constructor. |
Method Summary | |
int |
getCode()
Retuns the error code that triggered the throwing of this exception |
java.lang.String |
getInstruction()
Returns the instruction string in which the error occured |
int |
getPosition()
Returns the position in the analyzed string where the error occured |
static IdentifierDescriptionException |
invalidParameter(java.lang.String ins,
int pos)
creates a IdentifierDescriptionException object for invalid parameter |
static IdentifierDescriptionException |
noValue(java.lang.String ins,
int pos)
creates a IdentifierDescriptionException object for parameter without value |
java.lang.String |
toString()
Produces an error message |
static IdentifierDescriptionException |
unknownInstruction(java.lang.String ins)
creates a IdentifierDescriptionException object for unknown instruction |
static IdentifierDescriptionException |
unknownParameter(java.lang.String ins,
int pos)
creates a IdentifierDescriptionException object for unknown parameter |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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 static final int UNKNOWN_INSTRUCTION
public static final int UNKNOWN_PARAM
public static final int INVALID_PARAM
public static final int NOVALUE
java.lang.String instr
int pos
int code
Constructor Detail |
public IdentifierDescriptionException(int code, java.lang.String instr, int pos)
code
- error codeinstr
- instruction stringpos
- error position in the stringMethod Detail |
public static IdentifierDescriptionException unknownInstruction(java.lang.String ins)
ins
- instruction string in which the error occured
public static IdentifierDescriptionException unknownParameter(java.lang.String ins, int pos)
ins
- instruction string in which the error occuredpos
- position in the parameter string where the error was found
public static IdentifierDescriptionException invalidParameter(java.lang.String ins, int pos)
ins
- instruction string in which the error occuredpos
- position in the parameter string where the error was found
public static IdentifierDescriptionException noValue(java.lang.String ins, int pos)
ins
- instruction string in which the error occuredpos
- position in the parameter string where the error was found
public int getCode()
public int getPosition()
public java.lang.String getInstruction()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |