|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.beasys.commerce.foundation.exception.FatalApplicationException
@Deprecated public class FatalApplicationException
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
.
MessageCatalog
,
ApplicationException
,
MessageCatalogException
,
Serialized FormField 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 |
---|
protected Exception embeddedException
protected Stack logMessages
protected Stack userMessages
Constructor Detail |
---|
public FatalApplicationException()
FatalApplicationException
with no associated message.
public FatalApplicationException(FatalApplicationException topException, FatalApplicationException bottomException)
FatalApplicationException
from two source FatalApplicationException
s
by concatinating the screen and log messages of the two source FatalApplicationException
s.
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.
FatalApplicationException
- topExceptionFatalApplicationException
- bottomExceptionpublic FatalApplicationException(String namespace, String messageKey)
namespace
- The associated catalog message namespace.messageKey
- The associated catalog message key.public FatalApplicationException(String namespace, String messageKey, Exception exception)
namespace
- The associated catalog message namespace.messageKey
- The associated catalog message key.exception
- The embedded exception.public FatalApplicationException(String namespace, String messageKey, Object argument)
namespace
- The associated catalog message namespace.messageKey
- The associated catalog message key.argument
- The message parameter substitution argument.public FatalApplicationException(String namespace, String messageKey, Object argument, Exception exception)
namespace
- The associated catalog message namespace.messageKey
- The associated catalog message key.argument
- The message parameter substitution argument.exception
- The embedded exception.public FatalApplicationException(String namespace, String messageKey, Object[] arguments)
namespace
- The associated catalog message namespace.messageKey
- The associated catalog message key.arguments
- The message parameter substitution arguments.public FatalApplicationException(String namespace, String messageKey, Object[] arguments, Exception exception)
namespace
- The associated catalog message namespace.messageKey
- The associated catalog message key.arguments
- The message parameter substitution arguments.exception
- The embedded exception.Method Detail |
---|
public Exception getEmbeddedException()
MessageCatalogException
getEmbeddedException
in interface MessageCatalogException
public String getLogMessage()
MessageCatalogException
getLogMessage
in interface MessageCatalogException
public Iterator getLogMessages()
MessageCatalogException
getLogMessages
in interface MessageCatalogException
public void addLogMessage(String namespace, String messageKey)
MessageCatalogException
addLogMessage
in interface MessageCatalogException
namespace
- Log catalog message namespace.messageKey
- Log catalog message key.public void addLogMessage(String namespace, String messageKey, Object argument)
MessageCatalogException
addLogMessage
in interface MessageCatalogException
namespace
- Log catalog message namespace.messageKey
- Log catalog message key.argument
- Message parameter substitution argument.public void addLogMessage(String namespace, String messageKey, Object[] arguments)
MessageCatalogException
addLogMessage
in interface MessageCatalogException
namespace
- Log catalog message namespace.messageKey
- Log catalog message key.public String getUserMessage()
MessageCatalogException
getUserMessage
in interface MessageCatalogException
public Iterator getUserMessages()
MessageCatalogException
getUserMessages
in interface MessageCatalogException
public void addUserMessage(String namespace, String messageKey)
MessageCatalogException
addUserMessage
in interface MessageCatalogException
namespace
- User catalog message namespace.messageKey
- User catalog message key.public void addUserMessage(String namespace, String messageKey, Object argument)
MessageCatalogException
addUserMessage
in interface MessageCatalogException
namespace
- User catalog message namespace.messageKey
- User catalog message key.argument
- Message parameter substitution argument.public void addUserMessage(String namespace, String messageKey, Object[] arguments)
MessageCatalogException
addUserMessage
in interface MessageCatalogException
namespace
- User catalog message namespace.messageKey
- User catalog message key.public void addMessage(String namespace, String messageKey)
MessageCatalogException
addMessage
in interface MessageCatalogException
namespace
- User and log catalog message namespace.messageKey
- User and log catalog message key.public void addMessage(String namespace, String messageKey, Object argument)
MessageCatalogException
addMessage
in interface MessageCatalogException
namespace
- User and log catalog message namespace.messageKey
- User and log catalog message key.argument
- Message parameter substitution argument.public void addMessage(String namespace, String messageKey, Object[] arguments)
MessageCatalogException
addMessage
in interface MessageCatalogException
namespace
- User and log catalog message namespace.messageKey
- User and log catalog message key.public String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public String toString()
toString
in class Throwable
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |