|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.ibm.spatial.SpatialException
public class SpatialException
SpatialException is thrown whenever errors are encountered on the operations of the geometry object. Besides the detail message, a SpatialException has an error code and an optional error location. A SpatialException may be wrapped around another exception.
Error codes are the message types defined in
Messages
.
Messages
,
EventLocation
,
Serialized FormConstructor Summary | |
---|---|
SpatialException()
Creates a new SpatialException. |
|
SpatialException(int errorCode,
EventLocation location,
java.lang.Exception e)
Creates a new SpatialException wrapping an existing exception. |
|
SpatialException(int errorCode,
java.lang.String message)
Creates a new SpatialException. |
|
SpatialException(int errorCode,
java.lang.String message,
EventLocation location)
Creates a new SpatialException. |
Method Summary | |
---|---|
int |
getErrorCode()
Retrieves the specific exception code for this SpatialException object. |
java.lang.Exception |
getException()
Returns the embedded exception, if any. |
EventLocation |
getLocation()
Returns the error location, if any. |
java.lang.String |
getMessage()
Returns a message for this exception. |
java.lang.String |
toString()
Override toString to pick up any embedded exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpatialException()
public SpatialException(int errorCode, java.lang.String message)
errorCode
- The error or warning code.message
- The error or warning message.public SpatialException(int errorCode, java.lang.String message, EventLocation location)
errorCode
- The error or warning code.message
- The error or warning message.location
- An EventLocation associated to this exceptionpublic SpatialException(int errorCode, EventLocation location, java.lang.Exception e)
errorCode
- The error or warning code.location
- An EventLocation associated to this exceptione
- The exception to be wrapped in a SpatialException.Method Detail |
---|
public java.lang.String getMessage()
If there is an embedded exception, and if the SpatialException has no detail message of its own, this method will return the detail message from the embedded exception.
getMessage
in class java.lang.Throwable
SpatialManager.setLocale(java.util.Locale)
public int getErrorCode()
public java.lang.Exception getException()
public EventLocation getLocation()
public java.lang.String toString()
toString
in class java.lang.Throwable
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |