|
HOME | ||||||||
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.text.ParseException com.ireasoning.util.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(String s,
int lineNumber)
Constructs a MibParseException |
Method Summary | |
int |
getErrorCode()
Return the error code of parsing failure |
int |
getErrorLineNumber()
|
String |
getImportMibModuleName()
If the error code is IMPORT_NOT_FOUND , it's the module
name of MIB which need to be loaded beforehand. |
String |
getMibModuleName()
Returns the Mib module name. |
void |
setErrorCode(int code)
Sets the error code |
void |
setImportMibModuleName(String name)
|
void |
setMibModuleName(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(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 String getMibModuleName()
public void setMibModuleName(String name)
public String getImportMibModuleName()
IMPORT_NOT_FOUND
, it's the module
name of MIB which need to be loaded beforehand.
public void setImportMibModuleName(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 |