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, toXdrByteArraypublic SCError()
public SCError(SCErrorType discriminant, Uint32 contractCode, SCErrorCode code)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static SCError decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static SCError fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static SCError fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic 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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object