public class APIResult extends ToYAMLString
Modifier and Type | Class and Description |
---|---|
static class |
APIResult.Status
API Result status.
|
ToYAMLString.FieldNameAndValue
Constructor and Description |
---|
APIResult(APIResult.Status status,
String message) |
Modifier and Type | Method and Description |
---|---|
static APIResult |
failure(Exception e) |
String |
getMessage()
The message.
|
APIResult.Status |
getStatus()
The status.
|
static APIResult |
partial(Exception e) |
static APIResult |
partial(int actual,
int expected) |
static APIResult |
success() |
static APIResult |
success(String message) |
static APIResult |
successOrPartialOrFailure(int actual,
int expected) |
static APIResult |
successOrPartialOrFailure(int actual,
int expected,
Exception e) |
append, appendFields, fromXMLString, getFieldsToAppend, toString, toXMLString
@ConstructorProperties(value={"status","message"}) @Generated(value="lombok") public APIResult(APIResult.Status status, String message)
public static APIResult partial(int actual, int expected)
public static APIResult successOrPartialOrFailure(int actual, int expected)
public static APIResult successOrPartialOrFailure(int actual, int expected, Exception e)
public static APIResult success()
@Generated(value="lombok") public APIResult.Status getStatus()
@Generated(value="lombok") public String getMessage()
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.