public static class AppianError.Builder
extends java.lang.Object
AppianError
. For errors based on an
ErrorCode
,
ValidationItem
,
AppianException
, etc, instead
of calling this builder, use AppianErrorBuilder
.Constructor and Description |
---|
Builder(java.lang.String code,
java.lang.String message) |
Builder(java.lang.String code,
java.lang.String message,
java.lang.String title) |
Modifier and Type | Method and Description |
---|---|
AppianError |
build() |
AppianError.Builder |
setCause(AppianError cause) |
AppianError.Builder |
setData(java.lang.Object data) |
AppianError.Builder |
setDetails(java.lang.String details) |
AppianError.Builder |
setOriginalMessageWithErrorCode(java.lang.String originalMessageWithErrorCode) |
AppianError.Builder |
setTitle(java.lang.String title) |
public Builder(java.lang.String code, java.lang.String message, java.lang.String title)
public Builder(java.lang.String code, java.lang.String message)
public AppianError.Builder setTitle(java.lang.String title)
public AppianError.Builder setDetails(java.lang.String details)
public AppianError.Builder setCause(AppianError cause)
public AppianError.Builder setData(java.lang.Object data)
public AppianError.Builder setOriginalMessageWithErrorCode(java.lang.String originalMessageWithErrorCode)
public AppianError build()
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.