com.ireasoning.util
Class MibParseException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.text.ParseException
|
+--com.ireasoning.util.MibParseException
- All Implemented Interfaces:
- Serializable
- public class MibParseException
- extends ParseException
Signals that an error has been reached unexpectedly while parsing MIB file
- See Also:
- Serialized Form
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 with the specified detail message and offset. |
GENERIC
public static final int GENERIC
- Error code: Generic error
IMPORT_NOT_FOUND
public static final int IMPORT_NOT_FOUND
- Error code: the needed MIB module not found
SYNTAX_ERROR
public static final int SYNTAX_ERROR
- Error code: Syntax error in the MIB
MibParseException
public MibParseException(String s,
int lineNumber)
- Constructs a
MibParseException with the specified detail message and offset.
- Parameters:
lineNumber
- the line number of error occurred
getErrorLineNumber
public int getErrorLineNumber()
getMibModuleName
public String getMibModuleName()
- Returns the Mib module name. it's the module name of MIB which is
being parsed.
setMibModuleName
public void setMibModuleName(String name)
- Sets the Mib module name
getImportMibModuleName
public String getImportMibModuleName()
- If the error code is
IMPORT_NOT_FOUND
, it's the module
name of MIB which need to be loaded beforehand.
setImportMibModuleName
public void setImportMibModuleName(String name)
getErrorCode
public int getErrorCode()
- Return the error code of parsing failure
setErrorCode
public void setErrorCode(int code)
- Sets the error code
Copyright © 2002 iReasoning Inc. All Rights Reserved.