org.geotools.arcsde
Class ArcSdeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.geotools.arcsde.ArcSdeException
All Implemented Interfaces:
java.io.Serializable

public class ArcSdeException
extends java.io.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
Version:
$Id: ArcSdeException.java 33499 2009-07-06 22:57:02Z groldan $
Author:
Gabriel Roldan (TOPP)
See Also:
Serialized Form

Constructor Summary
ArcSdeException(SeException cause)
           
ArcSdeException(java.lang.String msg, SeException cause)
           
 
Method Summary
 SeException getCause()
           
 java.lang.String getMessage()
           
 SeError getSeError()
           
static java.lang.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 java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArcSdeException

public ArcSdeException(SeException cause)

ArcSdeException

public ArcSdeException(java.lang.String msg,
                       SeException cause)
Method Detail

getCause

public SeException getCause()
Overrides:
getCause in class java.lang.Throwable

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getSeError

public SeError getSeError()

toMessage

public static java.lang.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-2010 Geotools. All Rights Reserved.