public abstract class AppianErrorCode
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
protected static class |
AppianErrorCode.InvalidErrorCode |
Modifier | Constructor and Description |
---|---|
protected |
AppianErrorCode() |
protected |
AppianErrorCode(java.lang.String code) |
protected |
AppianErrorCode(java.lang.String code,
boolean hasTitle) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
getCategory() |
int |
getDetail() |
java.lang.String |
getMessage(AppianErrorCodeFormatter callback,
java.lang.Object... arguments) |
java.lang.String |
getMessageWithCode(AppianErrorCodeFormatter callback,
java.lang.Object... arguments) |
int |
getNamespace() |
java.lang.String |
getTitle(AppianErrorCodeTitleFormatter callback,
java.lang.Object... arguments) |
int |
hashCode() |
boolean |
hasTitle()
Indicates whether or not the given ErrorCode has a title corresponding to its message.
|
static AppianErrorCode |
toErrorCode(java.lang.String code)
Returns the error code.
|
java.lang.String |
toString() |
protected AppianErrorCode()
protected AppianErrorCode(java.lang.String code) throws AppianErrorCode.InvalidErrorCode
AppianErrorCode.InvalidErrorCode
protected AppianErrorCode(java.lang.String code, boolean hasTitle) throws AppianErrorCode.InvalidErrorCode
AppianErrorCode.InvalidErrorCode
public final boolean hasTitle()
public static AppianErrorCode toErrorCode(java.lang.String code)
ErrorCode
.
This is used currently in GWT and PMM Connected Environments so the server can send down the string code
of an ErrorCode and an instance can be returned from the string code.
See https://source.appian.com/cru/CR-AE-1752#CFR-23290code
- The string representation of an error code, example APNX-1-0000-000AppianErrorCode
public int getNamespace()
public int getCategory()
public int getDetail()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getMessage(AppianErrorCodeFormatter callback, java.lang.Object... arguments)
public java.lang.String getTitle(AppianErrorCodeTitleFormatter callback, java.lang.Object... arguments)
public java.lang.String getMessageWithCode(AppianErrorCodeFormatter callback, java.lang.Object... arguments)
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.