public class BulletError extends Object implements JSONFormatter, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_KEY |
static String |
RESOLUTIONS_KEY |
GSON, INVALID_DOUBLES| Constructor and Description |
|---|
BulletError(String error,
String resolution)
Creates a BulletError with the given error message and resolution.
|
| Modifier and Type | Method and Description |
|---|---|
String |
asJSON()
Convert this object to a JSON string.
|
static BulletError |
makeError(String error,
String resolution)
Creates a BulletError with the given error message and resolution.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasJSON, fromJSONpublic static final String ERROR_KEY
public static final String RESOLUTIONS_KEY
public String asJSON()
JSONFormatterasJSON in interface JSONFormatterpublic static BulletError makeError(String error, String resolution)
error - The message denoting the error.resolution - A resolution message.Copyright © 2021. All rights reserved.