public abstract class AbstractErrorMessage extends AbstractMessage
Message.| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
private boolean |
technical |
TYPE_INFORMATION, TYPE_TECHNICAL_ERROR, TYPE_USER_ERROR, TYPE_VALIDATION_FAILURE, TYPE_WARNING| Modifier | Constructor and Description |
|---|---|
protected |
AbstractErrorMessage()
The constructor for de-serialization in GWT.
|
|
AbstractErrorMessage(NlsThrowable error)
The constructor.
|
|
AbstractErrorMessage(String code,
Object source,
NlsMessage message,
UUID uuid,
String details,
boolean technical)
The constructor.
|
|
AbstractErrorMessage(String code,
Object source,
String message,
UUID uuid,
String details,
boolean technical)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getType()
This method gets the type of this
Message. |
getCode, getDetails, getMessage, getMessage, getSource, getUuid, toStringprivate static final long serialVersionUID
private boolean technical
protected AbstractErrorMessage()
public AbstractErrorMessage(String code, Object source, String message, UUID uuid, String details, boolean technical)
code - - see AbstractMessage.getCode().source - - see AbstractMessage.getSource().message - - see AbstractMessage.getMessage().uuid - - see AbstractMessage.getUuid().details - - see AbstractMessage.getDetails().technical - - true in case of technical error with
Message.TYPE_TECHNICAL_ERROR, false otherwise (business error).public AbstractErrorMessage(String code, Object source, NlsMessage message, UUID uuid, String details, boolean technical)
code - - see AbstractMessage.getCode().source - - see AbstractMessage.getSource().message - - see AbstractMessage.getMessage().uuid - - see AbstractMessage.getUuid().details - - see AbstractMessage.getDetails().technical - - true in case of technical error with
Message.TYPE_TECHNICAL_ERROR, false otherwise (business error).public AbstractErrorMessage(NlsThrowable error)
error - is the NlsThrowable to convert as error message.public String getType()
MessageMessage. This should be one of the following options:
ValidationFailure.error caused by the
end-user (e.g. by providing invalid data). Unlike Message.TYPE_VALIDATION_FAILURE this is an actual error that has
been detected after a successful validation.error related to a
technical problem (e.g. programming failure such as NullPointerException or operational error like
ConnectException).Copyright © 2001–2016 mmm-Team. All rights reserved.