com.beasys.commerce.foundation.exception
Class FatalApplicationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.beasys.commerce.foundation.exception.FatalApplicationException
All Implemented Interfaces
MessageCatalogException, Serializable
Direct Known Subclasses:
OrderPackingException, QuoteException

Deprecated See BEA Commerce product offering

@Deprecated
public class FatalApplicationException
extends RuntimeException
implements MessageCatalogException

The FatalApplicationException class is used to signal runtime business logic exceptions to a caller.

The FatalApplicationException class is closely tied to the MessageCatalog. An FatalApplicationException contains a log and user message that is constructed using the MessageCatalog. In fact, each FatalApplicationException derivative should have at least one user and log catalog message.

In the case of an EJB, the following guidelines should be followed:

Like the ApplicationException class, the FatalApplicationException class is used to signal business logic exceptions. However, unlike the ApplicationException class, if a bean method throws a FatalApplicationException, any existing transaction will be rolled back by the Container and the bean's state will be set to "does not exists". The net effect is the same as if the bean method threw a SystemException.

See Also
MessageCatalog, ApplicationException, MessageCatalogException, Serialized Form

Field Summary
protected  Exception embeddedException
          Deprecated See BEA Commerce product offering
protected  Stack logMessages
          Deprecated See BEA Commerce product offering
protected  Stack userMessages
          Deprecated See BEA Commerce product offering
 
Constructor Summary
FatalApplicationException()
          Deprecated See BEA Commerce product offering
FatalApplicationException(FatalApplicationException topException, FatalApplicationException bottomException)
          Deprecated See BEA Commerce product offering
FatalApplicationException(String namespace, String messageKey)
          Deprecated See BEA Commerce product offering
FatalApplicationException(String namespace, String messageKey, Exception exception)
          Deprecated See BEA Commerce product offering
FatalApplicationException(String namespace, String messageKey, Object argument)
          Deprecated See BEA Commerce product offering
FatalApplicationException(String namespace, String messageKey, Object[] arguments)
          Deprecated See BEA Commerce product offering
FatalApplicationException(String namespace, String messageKey, Object[] arguments, Exception exception)
          Deprecated See BEA Commerce product offering
FatalApplicationException(String namespace, String messageKey, Object argument, Exception exception)
          Deprecated See BEA Commerce product offering
 
Method Summary
 void addLogMessage(String namespace, String messageKey)
          Deprecated See BEA Commerce product offering
 void addLogMessage(String namespace, String messageKey, Object argument)
          Deprecated See BEA Commerce product offering
 void addLogMessage(String namespace, String messageKey, Object[] arguments)
          Deprecated See BEA Commerce product offering
 void addMessage(String namespace, String messageKey)
          Deprecated See BEA Commerce product offering
 void addMessage(String namespace, String messageKey, Object argument)
          Deprecated See BEA Commerce product offering
 void addMessage(String namespace, String messageKey, Object[] arguments)
          Deprecated See BEA Commerce product offering
 void addUserMessage(String namespace, String messageKey)
          Deprecated See BEA Commerce product offering
 void addUserMessage(String namespace, String messageKey, Object argument)
          Deprecated See BEA Commerce product offering
 void addUserMessage(String namespace, String messageKey, Object[] arguments)
          Deprecated See BEA Commerce product offering
 Exception getEmbeddedException()
          Deprecated See BEA Commerce product offering
 String getLocalizedMessage()
          Deprecated See BEA Commerce product offering
 String getLogMessage()
          Deprecated See BEA Commerce product offering
 Iterator getLogMessages()
          Deprecated See BEA Commerce product offering
 String getMessage()
          Deprecated See BEA Commerce product offering
 String getUserMessage()
          Deprecated See BEA Commerce product offering
 Iterator getUserMessages()
          Deprecated See BEA Commerce product offering
 String toString()
          Deprecated See BEA Commerce product offering
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

embeddedException

protected Exception embeddedException
Deprecated See BEA Commerce product offering
The embedded exception.


logMessages

protected Stack logMessages
Deprecated See BEA Commerce product offering
The log messages.


userMessages

protected Stack userMessages
Deprecated See BEA Commerce product offering
The user messages.

Constructor Detail

FatalApplicationException

public FatalApplicationException()
Deprecated See BEA Commerce product offering

Constructs an FatalApplicationException with no associated message.


FatalApplicationException

public FatalApplicationException(FatalApplicationException topException,
                                 FatalApplicationException bottomException)
Deprecated See BEA Commerce product offering

Constructs an FatalApplicationException from two source FatalApplicationExceptions by concatinating the screen and log messages of the two source FatalApplicationExceptions. The messages of the first FatalApplicationException will preceed those of the second in the constructed FatalApplicationException. Furthermore, the new FatalApplicationException will have the embedded exception of the first FatalApplicationException associated with it.

Parameters
FatalApplicationException - topException
FatalApplicationException - bottomException

FatalApplicationException

public FatalApplicationException(String namespace,
                                 String messageKey)
Deprecated See BEA Commerce product offering

Class constructor taking the namespace and key of the associated catalog message.

Parameters
namespace - The associated catalog message namespace.
messageKey - The associated catalog message key.

FatalApplicationException

public FatalApplicationException(String namespace,
                                 String messageKey,
                                 Exception exception)
Deprecated See BEA Commerce product offering

Class constructor taking the namespace and key of the associated catalog message and an embedded exception.

Parameters
namespace - The associated catalog message namespace.
messageKey - The associated catalog message key.
exception - The embedded exception.

FatalApplicationException

public FatalApplicationException(String namespace,
                                 String messageKey,
                                 Object argument)
Deprecated See BEA Commerce product offering

Class constructor taking the namespace and key of the associated catalog message and a message parameter substitution argument.

Parameters
namespace - The associated catalog message namespace.
messageKey - The associated catalog message key.
argument - The message parameter substitution argument.

FatalApplicationException

public FatalApplicationException(String namespace,
                                 String messageKey,
                                 Object argument,
                                 Exception exception)
Deprecated See BEA Commerce product offering

Class constructor taking the namespace and key of the associated catalog message, message parameter substitution argument, and an embedded exception.

Parameters
namespace - The associated catalog message namespace.
messageKey - The associated catalog message key.
argument - The message parameter substitution argument.
exception - The embedded exception.

FatalApplicationException

public FatalApplicationException(String namespace,
                                 String messageKey,
                                 Object[] arguments)
Deprecated See BEA Commerce product offering

Class constructor taking the namespace and key of the associated catalog message and message parameter substitution arguments.

Parameters
namespace - The associated catalog message namespace.
messageKey - The associated catalog message key.
arguments - The message parameter substitution arguments.

FatalApplicationException

public FatalApplicationException(String namespace,
                                 String messageKey,
                                 Object[] arguments,
                                 Exception exception)
Deprecated See BEA Commerce product offering

Class constructor taking the namespace and key of the associated catalog message, message parameter substitution arguments, and an embedded exception.

Parameters
namespace - The associated catalog message namespace.
messageKey - The associated catalog message key.
arguments - The message parameter substitution arguments.
exception - The embedded exception.
Method Detail

getEmbeddedException

public Exception getEmbeddedException()
Deprecated See BEA Commerce product offering

Description copied from interface: MessageCatalogException
Gets the embedded exception associated with this exception.

Specified by:
getEmbeddedException in interface MessageCatalogException
Returns
The embedded exception.

getLogMessage

public String getLogMessage()
Deprecated See BEA Commerce product offering

Description copied from interface: MessageCatalogException
Returns the first log catalog message associated with this exception.

Specified by:
getLogMessage in interface MessageCatalogException
Returns
The first log catalog message associated with this exception.

getLogMessages

public Iterator getLogMessages()
Deprecated See BEA Commerce product offering

Description copied from interface: MessageCatalogException
Returns an iterator over all the log catalog messages associated with this exception.

Specified by:
getLogMessages in interface MessageCatalogException
Returns
An iterator over all log catalog messages.

addLogMessage

public void addLogMessage(String namespace,
                          String messageKey)
Deprecated See BEA Commerce product offering

Description copied from interface: MessageCatalogException
Adds a new log catalog message to the stack of associated messages.

Specified by:
addLogMessage in interface MessageCatalogException
Parameters
namespace - Log catalog message namespace.
messageKey - Log catalog message key.

addLogMessage

public void addLogMessage(String namespace,
                          String messageKey,
                          Object argument)
Deprecated See BEA Commerce product offering

Description copied from interface: MessageCatalogException
Adds a new log catalog message to the stack of associated messages.

Specified by:
addLogMessage in interface MessageCatalogException
Parameters
namespace - Log catalog message namespace.
messageKey - Log catalog message key.
argument - Message parameter substitution argument.

addLogMessage

public void addLogMessage(String namespace,
                          String messageKey,
                          Object[] arguments)
Deprecated See BEA Commerce product offering

Description copied from interface: MessageCatalogException
Adds a new log catalog message to the stack of associated messages.

Specified by:
addLogMessage in interface MessageCatalogException
Parameters
namespace - Log catalog message namespace.
messageKey - Log catalog message key.

getUserMessage

public String getUserMessage()
Deprecated See BEA Commerce product offering

Description copied from interface: MessageCatalogException
Returns the first user catalog message associated with this exception.

Specified by:
getUserMessage in interface MessageCatalogException
Returns
The user catalog message associated with this exception.

getUserMessages

public Iterator getUserMessages()
Deprecated See BEA Commerce product offering

Description copied from interface: MessageCatalogException
Returns an iterator over all the user catalog messages associated with this exception.

Specified by:
getUserMessages in interface MessageCatalogException
Returns
An iterator over all user catalog messages.

addUserMessage

public void addUserMessage(String namespace,
                           String messageKey)
Deprecated See BEA Commerce product offering

Description copied from interface: MessageCatalogException
Adds a new user catalog message to the stack of associated messages.

Specified by:
addUserMessage in interface MessageCatalogException
Parameters
namespace - User catalog message namespace.
messageKey - User catalog message key.

addUserMessage

public void addUserMessage(String namespace,
                           String messageKey,
                           Object argument)
Deprecated See BEA Commerce product offering

Description copied from interface: MessageCatalogException
Adds a new user catalog message to the stack of associated messages.

Specified by:
addUserMessage in interface MessageCatalogException
Parameters
namespace - User catalog message namespace.
messageKey - User catalog message key.
argument - Message parameter substitution argument.

addUserMessage

public void addUserMessage(String namespace,
                           String messageKey,
                           Object[] arguments)
Deprecated See BEA Commerce product offering

Description copied from interface: MessageCatalogException
Adds a new user catalog message to the stack of associated messages.

Specified by:
addUserMessage in interface MessageCatalogException
Parameters
namespace - User catalog message namespace.
messageKey - User catalog message key.

addMessage

public void addMessage(String namespace,
                       String messageKey)
Deprecated See BEA Commerce product offering

Description copied from interface: MessageCatalogException
Adds a new user and log catalog message to the stack of associated messages.

Specified by:
addMessage in interface MessageCatalogException
Parameters
namespace - User and log catalog message namespace.
messageKey - User and log catalog message key.

addMessage

public void addMessage(String namespace,
                       String messageKey,
                       Object argument)
Deprecated See BEA Commerce product offering

Description copied from interface: MessageCatalogException
Adds a new user catalog message to the stack of associated messages.

Specified by:
addMessage in interface MessageCatalogException
Parameters
namespace - User and log catalog message namespace.
messageKey - User and log catalog message key.
argument - Message parameter substitution argument.

addMessage

public void addMessage(String namespace,
                       String messageKey,
                       Object[] arguments)
Deprecated See BEA Commerce product offering

Description copied from interface: MessageCatalogException
Adds a new user catalog message to the stack of associated messages.

Specified by:
addMessage in interface MessageCatalogException
Parameters
namespace - User and log catalog message namespace.
messageKey - User and log catalog message key.

getMessage

public String getMessage()
Deprecated See BEA Commerce product offering

Returns the user message associated with this exception.

Overrides:
getMessage in class Throwable
Returns
The user message associated with this exception.

getLocalizedMessage

public String getLocalizedMessage()
Deprecated See BEA Commerce product offering

Returns the user message associated with this exception.

Overrides:
getLocalizedMessage in class Throwable
Returns
The user message associated with this exception.

toString

public String toString()
Deprecated See BEA Commerce product offering

Returns a string representation of this exception.

Overrides:
toString in class Throwable
Returns
A string representation of this exception.


Copyright © 2008 BEA Systems, Inc. All Rights Reserved