Package com.snmp4j.smi
Class SmiParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.snmp4j.smi.SmiParseException
- All Implemented Interfaces:
Serializable
The
SmiParseException
provides information about
violations of the Structure of Management Information (SMI) v1 or v2
standards.
Per MIB specification file, there might be more than one error
reported by this exception.- Author:
- Frank Fock
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionSmiParseException(List<SmiError> errors)
Creates aSmiParseException
from a list ofSmiError
s. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
SmiParseException
Creates aSmiParseException
from a list ofSmiError
s.- Parameters:
errors
- the parse errors collected until bailing out with this exception.
-
-
Method Details
-
getMessage
Gets the error message for all errors found in a MIB specification. Each error is separated by a double new line.- Overrides:
getMessage
in classThrowable
- Returns:
- the error message text.
-
getErrorList
Gets the list ofSmiError
s.- Returns:
- the List of
SmiError
s for this MIB specification file.
-
toString
-