@GwtCompatible
public class AppianError
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AppianError.Builder
A builder to create instances of
AppianError . |
Modifier and Type | Field and Description |
---|---|
protected AppianError |
cause |
static java.lang.String |
CAUSE |
protected java.lang.String |
code |
static java.lang.String |
CODE |
protected java.lang.Object |
data |
static java.lang.String |
DATA |
protected java.lang.String |
details |
static java.lang.String |
DETAILS |
static java.lang.String |
ERROR_ORIGINAL_MESSAGE_WITH_ERROR_CODE |
static java.lang.String |
LOCAL_PART |
protected java.lang.String |
message |
static java.lang.String |
MESSAGE |
protected java.lang.String |
originalMessageWithErrorCode |
static javax.xml.namespace.QName |
QNAME |
protected java.lang.String |
title |
static java.lang.String |
TITLE |
Modifier | Constructor and Description |
---|---|
protected |
AppianError() |
|
AppianError(java.lang.String code,
java.lang.String title,
java.lang.String message,
java.lang.String details,
AppianError cause) |
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.Iterable<AppianError>> |
collapseToNull(T errors)
If the given collection is
null , or empty, or contains only null items, returns
null . |
static com.google.common.base.Equivalence<AppianError> |
equalDataCheck()
Returns an
Equivalence that compares all fields of AppianError . |
AppianError |
getCause()
Returns the lower-level error that caused this error.
|
java.lang.String |
getCode()
Returns the unique code identifying the error.
|
java.lang.Object |
getData()
Returns any further data required to successfully process the error.
|
java.lang.String |
getDetails()
Returns detailed information about the error (for example, metadata such as ids/uuids).
|
java.lang.String |
getMessage()
Returns the error message suitable for end users.
|
java.lang.String |
getMessageWithCode()
Returns the
error message concatenated with the
error code . |
java.lang.String |
getOriginalMessageWithErrorCode()
Returns the original error message and error code if the exception was wrapped.
|
java.lang.String |
getTitle()
Returns the error title.
|
java.lang.String |
toString() |
public static final java.lang.String LOCAL_PART
public static final javax.xml.namespace.QName QNAME
public static final java.lang.String CODE
public static final java.lang.String TITLE
public static final java.lang.String MESSAGE
public static final java.lang.String DETAILS
public static final java.lang.String ERROR_ORIGINAL_MESSAGE_WITH_ERROR_CODE
public static final java.lang.String CAUSE
public static final java.lang.String DATA
protected java.lang.String code
protected java.lang.String title
protected java.lang.String message
protected java.lang.String details
protected AppianError cause
protected java.lang.Object data
protected java.lang.String originalMessageWithErrorCode
protected AppianError()
public AppianError(java.lang.String code, java.lang.String title, java.lang.String message, java.lang.String details, AppianError cause)
public java.lang.String getCode()
public java.lang.String getTitle()
public java.lang.String getMessage()
public java.lang.String getDetails()
public AppianError getCause()
null
if this error
is the root error.public java.lang.String getMessageWithCode()
error message
concatenated with the
error code
.public java.lang.Object getData()
public java.lang.String getOriginalMessageWithErrorCode()
public java.lang.String toString()
toString
in class java.lang.Object
public static <T extends java.lang.Iterable<AppianError>> T collapseToNull(T errors)
null
, or empty, or contains only null
items, returns
null
. Otherwise, returns the original collection unchanged.public static com.google.common.base.Equivalence<AppianError> equalDataCheck()
Equivalence
that compares all fields of AppianError
.Copyright © 2003-2024 Appian Corporation. All Rights Reserved.