public final class DE4AResponseDocumentHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_ERROR_CODE_LENGTH |
static int |
MAX_ERROR_TEXT_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static ErrorType |
createError(String sCode,
String sText)
Create a single
ErrorType instance. |
static ResponseErrorType |
createResponseError(boolean bSuccess)
Create a
ResponseErrorType with the "Ack" state set only. |
public static final int MAX_ERROR_CODE_LENGTH
public static final int MAX_ERROR_TEXT_LENGTH
@Nonnull public static ErrorType createError(@Nonnull @Nonempty String sCode, @Nonnull @Nonempty String sText)
ErrorType instance. Must have code and text.sCode - Error code. May neither be null nor empty.sText - Error text. May neither be null nor empty.null.@Nonnull public static ResponseErrorType createResponseError(boolean bSuccess)
ResponseErrorType with the "Ack" state set only.
Eventually present errors must be added by the caller.bSuccess - true in case of success, false in case of
error.null.Copyright © 2021–2022 de4a. All rights reserved.