org.geotools.arcsde
Class ArcSdeException

Object
  extended by Throwable
      extended by Exception
          extended by IOException
              extended by ArcSdeException
All Implemented Interfaces:
Serializable

public class ArcSdeException
extends IOException

An IOException that wraps an SeException in order to report the SeError messages that otherwise get hidden in a normal stack trace.

Since:
2.5
Author:
Gabriel Roldan (TOPP)
See Also:
Serialized Form
Module:

Constructor Summary
ArcSdeException(SeException cause)
           
ArcSdeException(String msg, SeException cause)
           
 
Method Summary
 SeException getCause()
           
 String getMessage()
           
 SeError getSeError()
           
static String toMessage(SeException e)
          SeException is pretty sad (Caused by: com.esri.sde.sdk.client.SeException: ) leaving you to hunt and peck at the SeError for a good description of what went bad.
 
Methods inherited from class Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArcSdeException

public ArcSdeException(SeException cause)

ArcSdeException

public ArcSdeException(String msg,
                       SeException cause)
Method Detail

getCause

public SeException getCause()
Overrides:
getCause in class Throwable

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getSeError

public SeError getSeError()

toMessage

public static String toMessage(SeException e)
SeException is pretty sad (Caused by: com.esri.sde.sdk.client.SeException: ) leaving you to hunt and peck at the SeError for a good description of what went bad.

This class tries to grab as much information as possible form SeError.

Returns:
String describing the message from SeException.


Copyright © 1996-2009 Geotools. All Rights Reserved.