com.finalist.util.genelv.exceptions
Class WrappedEJBException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjavax.ejb.EJBException
                  extended bycom.finalist.util.genelv.exceptions.WrappedEJBException
All Implemented Interfaces:
java.io.Serializable

public class WrappedEJBException
extends javax.ejb.EJBException
implements java.io.Serializable

This exception is thrown for all problems that occur in the EJB Container code of the application. This class defines a few typical error types to help the developer find the error cause.

See Also:
Serialized Form

Field Summary
static java.lang.String EJB_CREATE
           
static java.lang.String EJB_FINDER
           
static java.lang.String EJB_JNDI
           
static java.lang.String JDBC
           
static java.lang.String REMOTE
           
static java.lang.String UNSPECIFIED
           
 
Constructor Summary
WrappedEJBException(java.lang.String message)
          Creates new WrappedEJBException
WrappedEJBException(java.lang.Throwable e)
          Creates new WrappedEJBException
 
Method Summary
 java.lang.String getErrorCode()
          Get the ApplicationResource (action) error key indicating the cause of the (wrapped EJB) exception.
 java.lang.String getWrappedStackTrace()
          Return a string version of the stack trace if the wrapped ejb exception is not null, a static message string indicating the absence of a stacktrace.
 void setErrorCode(java.lang.String errorCode)
          Set the ApplicationResource (action) error key indicating the cause of the (wrapped EJB) exception.
 
Methods inherited from class javax.ejb.EJBException
getCausedByException, getMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EJB_FINDER

public static final java.lang.String EJB_FINDER
See Also:
Constant Field Values

UNSPECIFIED

public static final java.lang.String UNSPECIFIED
See Also:
Constant Field Values

EJB_JNDI

public static final java.lang.String EJB_JNDI
See Also:
Constant Field Values

JDBC

public static final java.lang.String JDBC
See Also:
Constant Field Values

EJB_CREATE

public static final java.lang.String EJB_CREATE
See Also:
Constant Field Values

REMOTE

public static final java.lang.String REMOTE
See Also:
Constant Field Values
Constructor Detail

WrappedEJBException

public WrappedEJBException(java.lang.String message)
Creates new WrappedEJBException

Parameters:
message - Information of real exception

WrappedEJBException

public WrappedEJBException(java.lang.Throwable e)
Creates new WrappedEJBException

Parameters:
e - Exception to wrap
Method Detail

getErrorCode

public java.lang.String getErrorCode()
Get the ApplicationResource (action) error key indicating the cause of the (wrapped EJB) exception.


setErrorCode

public void setErrorCode(java.lang.String errorCode)
Set the ApplicationResource (action) error key indicating the cause of the (wrapped EJB) exception.


getWrappedStackTrace

public java.lang.String getWrappedStackTrace()
Return a string version of the stack trace if the wrapped ejb exception is not null, a static message string indicating the absence of a stacktrace.



Copyright © 2003-2004 SourceForge. All Rights Reserved.