|
Anyframe Core | |||||||||
| 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
anyframe.common.exception.NestedRuntimeException
public class NestedRuntimeException
RuntimeException
| Field Summary | |
|---|---|
protected Message |
message
Contains user defined message, solution message and reason. |
protected String |
messageKey
Contains either the message of the exception or message key. |
protected Object[] |
messageParameters
The parameters to substitute. |
| Constructor Summary | |
|---|---|
NestedRuntimeException()
|
|
NestedRuntimeException(MessageSource messageSource,
String messageKey)
The constructor with a message key, with parameters, and with a wrapped exception (with all the formal parameters). |
|
NestedRuntimeException(MessageSource messageSource,
String messageKey,
Object[] messageParameters)
The constructor with a message key, with parameters, and with a wrapped exception (with all the formal parameters). |
|
NestedRuntimeException(MessageSource messageSource,
String messageKey,
Object[] messageParameters,
Throwable wrappedException)
The constructor with a message key, with parameters, and with a wrapped exception (with all the formal parameters). |
|
NestedRuntimeException(MessageSource messageSource,
String messageKey,
Throwable wrappedException)
The constructor with a message key, with parameters, and with a wrapped exception (with all the formal parameters). |
|
NestedRuntimeException(String message)
Constructor with a message key. |
|
NestedRuntimeException(String message,
Object[] messageParameters)
The constructor with a message key and parameters. |
|
NestedRuntimeException(String message,
Object[] messageParameters,
Throwable wrappedException)
The constructor with a message key, with parameters, and with a wrapped exception (with all the formal parameters). |
|
NestedRuntimeException(String message,
Throwable exception)
Constructor with a message key and an exception. |
|
| Method Summary | |
|---|---|
String |
getMessage()
Get the user message for the exception. |
String |
getMessageKey()
|
Object[] |
getMessageParameters()
|
Message |
getMessages()
Get the normal message structure for the exception. |
void |
setMessageKey(String messageKey)
|
void |
setMessageParameters(Object[] messageParameters)
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, 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 |
| Field Detail |
|---|
protected String messageKey
protected Object[] messageParameters
protected Message message
| Constructor Detail |
|---|
public NestedRuntimeException(MessageSource messageSource,
String messageKey,
Object[] messageParameters,
Throwable wrappedException)
messageSource - message management service to extract a messagemessageKey - the message key of this exceptionmessageParameters - the parameters to substitute in the messagewrappedException - the exception that is wrapped in this exception
public NestedRuntimeException(MessageSource messageSource,
String messageKey,
Throwable wrappedException)
messageSource - message management service to extract a messagemessageKey - the message key of this exceptionwrappedException - the exception that is wrapped in this exception
public NestedRuntimeException(MessageSource messageSource,
String messageKey,
Object[] messageParameters)
messageSource - message management service to extract a messagemessageKey - the message key of this exceptionmessageParameters - the parameters to substitute in the message
public NestedRuntimeException(MessageSource messageSource,
String messageKey)
messageSource - message management service to extract a messagemessageKey - the message key of this exception
public NestedRuntimeException(String message,
Object[] messageParameters,
Throwable wrappedException)
message - the message of this exceptionmessageParameters - the parameters to substitute in the messagewrappedException - the exception that is wrapped in this exception
public NestedRuntimeException(String message,
Object[] messageParameters)
message - the message of this exceptionmessageParameters - the parameters to substitute in the messagepublic NestedRuntimeException()
public NestedRuntimeException(String message)
message - the message of this exception
public NestedRuntimeException(String message,
Throwable exception)
message - the message of this exceptionexception - the exception that is wrapped in this exception| Method Detail |
|---|
public Message getMessages()
getMessages in interface AnyFrameMessageSourcepublic String getMessage()
getMessage in class Throwablepublic String getMessageKey()
public void setMessageKey(String messageKey)
public Object[] getMessageParameters()
public void setMessageParameters(Object[] messageParameters)
|
Anyframe Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||