java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aendvari.common.osm.OsmException
- All Implemented Interfaces:
- java.io.Serializable
- public class OsmException
- extends java.lang.RuntimeException
Thrown when a particular Object Space Model operation could not be performed. The specific
error can be obtained from the code property. This exception is thrown only
very in "exceptional" cases. Generally, OSM methods return specific error values in ordinary
situations.
|
Nested Class Summary |
static interface |
OsmException.Code
Defines the constants for the code property. |
| Nested classes inherited from class java.lang.Throwable |
|
|
Field Summary |
protected int |
code
Contains the specific error code for the exception. |
protected java.lang.Throwable |
rootCause
The exception that caused this exception, may be null. |
| Fields inherited from class java.lang.Throwable |
|
code
protected int code
- Contains the specific error code for the exception.
rootCause
protected java.lang.Throwable rootCause
- The exception that caused this exception, may be null.
OsmException
public OsmException(int setCode)
- Creates a
OsmException instance.
OsmException
public OsmException(int setCode,
java.lang.Throwable setRootCause)
- Creates a
OsmException instance.
getRootCause
public java.lang.Throwable getRootCause()
- Returns the exception that caused this exception, null if none.
getCode
public int getCode()
- Returns a error code of the exception.
toString
public java.lang.String toString()
- Returns a string representation of the exception.