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:
-
Constructor Summary
ConstructorsConstructorDescriptionSmiParseException(List<SmiError> errors) Creates aSmiParseExceptionfrom a list ofSmiErrors. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
SmiParseException
Creates aSmiParseExceptionfrom a list ofSmiErrors.- 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:
getMessagein classThrowable- Returns:
- the error message text.
-
getErrorList
Gets the list ofSmiErrors.- Returns:
- the List of
SmiErrors for this MIB specification file.
-
toString
-