|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.text.ParseException
com.ireasoning.util.MibParseException
public class MibParseException
Signals that an error has been reached unexpectedly while parsing MIB file
Field Summary | |
---|---|
static int |
GENERIC
Error code: Generic error |
static int |
IMPORT_NOT_FOUND
Error code: the needed MIB module not found |
static int |
SYNTAX_ERROR
Error code: Syntax error in the MIB |
Constructor Summary | |
---|---|
MibParseException(java.lang.String s,
int lineNumber)
Constructs a MibParseException |
Method Summary | |
---|---|
int |
getErrorCode()
Return the error code of parsing failure |
int |
getErrorLineNumber()
|
java.lang.String |
getImportMibModuleName()
If the error code is IMPORT_NOT_FOUND , it's the module
name of MIB which need to be loaded beforehand. |
java.lang.String |
getMibModuleName()
Returns the Mib module name. |
void |
setErrorCode(int code)
Sets the error code |
void |
setImportMibModuleName(java.lang.String name)
|
void |
setMibModuleName(java.lang.String name)
Sets the Mib module name |
Methods inherited from class java.text.ParseException |
---|
getErrorOffset |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int GENERIC
public static final int IMPORT_NOT_FOUND
public static final int SYNTAX_ERROR
Constructor Detail |
---|
public MibParseException(java.lang.String s, int lineNumber)
MibParseException with the specified detail message and offset.
- Parameters:
s
- error messagelineNumber
- the line number of error occurred
Method Detail |
---|
public int getErrorLineNumber()
public java.lang.String getMibModuleName()
public void setMibModuleName(java.lang.String name)
public java.lang.String getImportMibModuleName()
IMPORT_NOT_FOUND
, it's the module
name of MIB which need to be loaded beforehand.
public void setImportMibModuleName(java.lang.String name)
public int getErrorCode()
public void setErrorCode(int code)
|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |