net.percederberg.mibble
Class MibException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--net.percederberg.mibble.MibException
- All Implemented Interfaces:
- java.io.Serializable
- public class MibException
- extends java.lang.Exception
A MIB exception. This exception is used to report processing
errors for operations on MIB types and values.
- Since:
- 2.0
- See Also:
- Serialized Form
Constructor Summary |
MibException(java.io.File file,
int line,
int column,
java.lang.String message)
Creates a new MIB exception. |
MibException(FileLocation location,
java.lang.String message)
Creates a new MIB exception. |
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 |
MibException
public MibException(FileLocation location,
java.lang.String message)
- Creates a new MIB exception.
- Parameters:
location
- the file locationmessage
- the error message
MibException
public MibException(java.io.File file,
int line,
int column,
java.lang.String message)
- Creates a new MIB exception.
- Parameters:
file
- the file containing the errorline
- the line number containing the errorcolumn
- the column number containing the errormessage
- the error message
getLocation
public FileLocation getLocation()
- Returns the error location.
- Returns:
- the error location