|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ErrorHandler
Basic interface for Spatial API error handlers.
If a spatial application needs to implement customized error
handling, it must implement this interface and then register an
instance with the SpatialManager using the
setErrorHandler
method. The API will then report all errors and warnings through this
interface.
If an application does not register an ErrorHandler, a default error handler is used.
SpatialManager.setErrorHandler(com.ibm.spatial.ErrorHandler)
Method Summary | |
---|---|
void |
fatalError(java.lang.Exception exception)
Receive notification of a non-recoverable error. |
java.lang.Exception |
recoverableError(java.lang.Exception exception)
Receive notification of a recoverable error. |
java.lang.Exception |
warning(java.lang.Exception exception)
Receive notification of a warning. |
Method Detail |
---|
java.lang.Exception recoverableError(java.lang.Exception exception)
Receive notification of a recoverable error. A recoverable error may occur for example when the API encounters an invalid geometry while reading several geometries from a shape file. The handler implementation may decide to recover from reading the invalid geometry and continuing to the next one, in which case it should return null. Otherwise, the API will throw the exception returned by this function.
It is still possible for the API to continue to run the current operation after this error occurs. For cases where the API can't continue, it will report a fatal error.
exception
- The fatal error information encapsulated in a
SpatialException, or a subclass of RuntimeException.
void fatalError(java.lang.Exception exception)
This type of error is used to signal that the API cannot continue the current operation after this error occurs.
exception
- The fatal error information encapsulated in a
SpatialException, or a subclass of RuntimeException.SpatialException
java.lang.Exception warning(java.lang.Exception exception)
It is still possible for the API to continue to run the current operation after this error occurs. For cases where the API can't continue, it will report a fatal error.
exception
- The fatal error information encapsulated in a
SpatialException
SpatialException
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |