com.infoengine.exception.adapter
Class IEAdapterException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.servlet.jsp.JspException
              extended bycom.infoengine.util.IEException
                  extended bycom.infoengine.exception.adapter.IEAdapterException
All Implemented Interfaces:
LocalizableMessage, Serializable
Direct Known Subclasses:
IEAdapterAppException, IEAdapterConnectionException, IEAdapterExecuteException, IEAdapterIOException

public class IEAdapterException
extends IEException

This is the base class for the other adapter exception classes defined with JADK. The IEAdapterException is subclassed from the Info*Engine IEException class that defines and standardizes the output format of all messages across the Info*Engine applications, servers, and adapters. IEException class wraps a IEMessage and a Throwable objects, of which it saves your localized message from the adapter resouce bundle and an exception from the Enterprise Information Systems (EIS) respectively. You may customize your adapter exceptions by sub- classing this class to define necessary variables to pass to the front-end application. If you need to pass the partial results from your EIS through the exception class, you will need the create IEPartialResultsException in the pacakge com.infoengine.exception, and add your partial results by calling setCollection method from the IEPartialResultsException class. To pass the IeCollection object in your method parameter, you can invoke the addVdb method inside the JADK RequestContext.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.infoengine.util.IEException
GETMESSAGE_LINE_SEPARATOR, TOSTRING_LINE_SEPARATOR
 
Fields inherited from class javax.servlet.jsp.JspException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
IEAdapterException()
          Constructs a Info*Engine exception with no specified detailed message or embedded throwable object.
IEAdapterException(String s)
          Constructs a Info*Engine exception with a non-localizable detailed message.
IEAdapterException(String rb, String key, Object[] params)
          Constructs a Info*Engine exception with a localizable detailed message.
IEAdapterException(String s, Throwable t)
          Constructs a Info*Engine adapter exception with a non-localizable detailed message.
IEAdapterException(Throwable t)
          Constructs an Info*Engine adapter exception with no specified detailed message from adapter or embedded throwable object.
IEAdapterException(Throwable t, String s)
          Constructs a Info*Engine exception with an embedded Throwable object, usually from the current JVM or from the back end information system, and non-localizable detailed message.
IEAdapterException(Throwable t, String rb, String key, Object[] params)
          Constructs a Info*Engine exception with an embedded Throwable object and a localizable detailed message.
 
Methods inherited from class com.infoengine.util.IEException
getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getmessage, getMessage, getNestedExceptionString, getNestedExceptionString, getNestedThrowable, printStackTrace, printStackTrace, setLocalizedMessage, toString, toString
 
Methods inherited from class javax.servlet.jsp.JspException
getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IEAdapterException

public IEAdapterException()
Constructs a Info*Engine exception with no specified detailed message or embedded throwable object.


IEAdapterException

public IEAdapterException(String s)
Constructs a Info*Engine exception with a non-localizable detailed message.

Parameters:
s - the detailed message

IEAdapterException

public IEAdapterException(String rb,
                          String key,
                          Object[] params)
Constructs a Info*Engine exception with a localizable detailed message.


IEAdapterException

public IEAdapterException(Throwable t,
                          String s)
Constructs a Info*Engine exception with an embedded Throwable object, usually from the current JVM or from the back end information system, and non-localizable detailed message.

Parameters:
t - the embedded Throwable. It may be null.
s - the detailed message. It may be null.

IEAdapterException

public IEAdapterException(Throwable t,
                          String rb,
                          String key,
                          Object[] params)
Constructs a Info*Engine exception with an embedded Throwable object and a localizable detailed message.

Parameters:
t - the embedded Throwable. It may be null.
rb - the name of the base resource bundle subclass containing the localizable message.
key - the key associated with the localizable message
params - an optional set of objects to be formatted into the localizable message text.

IEAdapterException

public IEAdapterException(Throwable t)
Constructs an Info*Engine adapter exception with no specified detailed message from adapter or embedded throwable object.

Parameters:
t - the throwable object.

IEAdapterException

public IEAdapterException(String s,
                          Throwable t)
Constructs a Info*Engine adapter exception with a non-localizable detailed message.

Parameters:
s - the detailed message
t - the embeded throwable object from the back end information system. It may be null.