public class SCError extends java.lang.Object implements XdrElement
union SCError switch (SCErrorType type) { case SCE_CONTRACT: uint32 contractCode; case SCE_WASM_VM: case SCE_CONTEXT: case SCE_STORAGE: case SCE_OBJECT: case SCE_CRYPTO: case SCE_EVENTS: case SCE_BUDGET: case SCE_VALUE: case SCE_AUTH: SCErrorCode code; };
Modifier and Type | Class and Description |
---|---|
static class |
SCError.SCErrorBuilder |
Constructor and Description |
---|
SCError() |
SCError(SCErrorType discriminant,
Uint32 contractCode,
SCErrorCode code) |
Modifier and Type | Method and Description |
---|---|
static SCError.SCErrorBuilder |
builder() |
static SCError |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static SCError |
fromXdrBase64(java.lang.String xdr) |
static SCError |
fromXdrByteArray(byte[] xdr) |
SCErrorCode |
getCode() |
Uint32 |
getContractCode() |
SCErrorType |
getDiscriminant() |
int |
hashCode() |
void |
setCode(SCErrorCode code) |
void |
setContractCode(Uint32 contractCode) |
void |
setDiscriminant(SCErrorType discriminant) |
SCError.SCErrorBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public SCError()
public SCError(SCErrorType discriminant, Uint32 contractCode, SCErrorCode code)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static SCError decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static SCError fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static SCError fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static SCError.SCErrorBuilder builder()
public SCError.SCErrorBuilder toBuilder()
public SCErrorType getDiscriminant()
public Uint32 getContractCode()
public SCErrorCode getCode()
public void setDiscriminant(SCErrorType discriminant)
public void setContractCode(Uint32 contractCode)
public void setCode(SCErrorCode code)
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