Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.common.osm
Class OsmException  view OsmException download OsmException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.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.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
OsmException(int setCode)
          Creates a OsmException instance.
OsmException(int setCode, java.lang.Throwable setRootCause)
          Creates a OsmException instance.
 
Method Summary
 int getCode()
          Returns a error code of the exception.
 java.lang.Throwable getRootCause()
          Returns the exception that caused this exception, null if none.
 java.lang.String toString()
          Returns a string representation of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

OsmException

public OsmException(int setCode)
Creates a OsmException instance.


OsmException

public OsmException(int setCode,
                    java.lang.Throwable setRootCause)
Creates a OsmException instance.

Method Detail

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.