1 package io.bytom.exception;
3 import com.google.gson.annotations.SerializedName;
8 * BuildException wraps errors returned by the build-transaction endpoint.
10 public class BuildException extends APIException {
12 public BuildException(String message, String requestId) {
13 super(message, requestId);
16 public static class ActionError extends APIException {
18 public static class Data {
20 * The index of the action that caused this error.
22 @SerializedName("index")
26 public ActionError(String message, String requestId) {
27 super(message, requestId);
31 * Additional data pertaining to the error.
36 public static class Data {
38 * A list of errors resulting from building actions.
40 @SerializedName("actions")
41 public List<ActionError> actionErrors;
45 * Extra data associated with this error, if any.
47 @SerializedName("data")