[sdk] Add data field in RpcError
package foundation.icon.icx.transport.jsonrpc;
+import foundation.icon.icx.data.Bytes;
+
import java.io.IOException;
/**
@@ -25,6 +27,7 @@ import java.io.IOException;
public class RpcError extends IOException {
private long code;
private String message;
+ private Bytes data;
public RpcError() {
// jackson needs a default constructor
@@ -52,4 +55,12 @@ public class RpcError extends IOException {
public String getMessage() {
return message;
}
+
+ /**
+ * Returns the data of rpc error
+ * @return data
+ */
+ public Bytes getData() {
+ return data;
+ }
}
