public class Error extends java.lang.Object implements XdrElement
struct Error { ErrorCode code; string msg<100>; };
Modifier and Type | Class and Description |
---|---|
static class |
Error.ErrorBuilder |
Constructor and Description |
---|
Error() |
Error(ErrorCode code,
XdrString msg) |
Modifier and Type | Method and Description |
---|---|
static Error.ErrorBuilder |
builder() |
static Error |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static Error |
fromXdrBase64(java.lang.String xdr) |
static Error |
fromXdrByteArray(byte[] xdr) |
ErrorCode |
getCode() |
XdrString |
getMsg() |
int |
hashCode() |
void |
setCode(ErrorCode code) |
void |
setMsg(XdrString msg) |
Error.ErrorBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static Error decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static Error fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static Error fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static Error.ErrorBuilder builder()
public Error.ErrorBuilder toBuilder()
public ErrorCode getCode()
public XdrString getMsg()
public void setCode(ErrorCode code)
public void setMsg(XdrString msg)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object