public final class SmiError extends Object
SmiError class represents a syntax or semantic error in a SMI specification file.
The error is located at the provided row and column and the defective text is available as well.
In addition, error number and message are provided.| Constructor and Description |
|---|
SmiError(String moduleName,
int row,
int column,
int endRow,
int endColumn,
int position,
int errorNumber,
String message,
String shortMessage,
String defectiveText,
String[] expectedText) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
Gets the column where the defective text was found in the text file.
|
String |
getDefectiveText()
The text in the MIB specification that failed to parse.
|
int |
getEndColumn()
Gets the ending column where the defective text ends in the text file.
|
int |
getEndRow()
Gets the bottom row of the defective text in the text file.
|
int |
getErrorNumber()
Gets the error code of the error.
|
String[] |
getExpectedText()
Returns the expected text alternatives identified by the SMI compiler.
|
String |
getMessage()
Gets the error message for the error.
|
String |
getModuleName()
Gets the MIB module name (if available) of the MIB module that contains the error.
|
int |
getPosition()
Gets the byte position in the input stream where the defective text starts.
|
int |
getRow()
Gets the row where the defective text was found in the text file.
|
String |
getShortMessage()
Gets the error message for the error in a short form, without error number and location information.
|
String |
toString() |
public int getColumn()
public int getEndColumn()
public int getErrorNumber()
public String getMessage()
public String getShortMessage()
public String getDefectiveText()
getColumn() and row
getRow().public int getRow()
public int getEndRow()
public int getPosition()
public String getModuleName()
null if the MIB module name was not determinable.public String[] getExpectedText()
null if no text was expected/could be identified as expected. Otherwise, a list
of expected text is returned where each element provides one alternative.Copyright © 2015 SNMP4J.com. All Rights Reserved.