public class APIResult extends Object
| Constructor and Description |
|---|
APIResult(boolean success,
String message) |
APIResult(ErrorCode errorCode,
String message) |
| Modifier and Type | Method and Description |
|---|---|
static APIResult |
asyncEventResult(String message) |
static APIResult |
failure(ErrorCode errorCode,
String message)
Creates a failed result with the given error code and message.
|
static APIResult |
failure(int errorCode,
String message) |
static APIResult |
success(String message) |
public APIResult(boolean success,
String message)
public static APIResult failure(ErrorCode errorCode, String message)
errorCode - the code of the errormessage - human-readable error message that explains the issue.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.