Package org.stellar.sdk.xdr
Class SCError
java.lang.Object
org.stellar.sdk.xdr.SCError
SCError's original definition in the XDR file is:
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; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionSCError()
SCError
(SCErrorType discriminant, Uint32 contractCode, SCErrorCode code) -
Method Summary
Modifier and TypeMethodDescriptionstatic SCError.SCErrorBuilder
builder()
static SCError
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static SCError
fromXdrBase64
(String xdr) static SCError
fromXdrByteArray
(byte[] xdr) getCode()
int
hashCode()
void
setCode
(SCErrorCode code) void
setContractCode
(Uint32 contractCode) void
setDiscriminant
(SCErrorType discriminant) toString()
default String
default byte[]
-
Constructor Details
-
SCError
public SCError() -
SCError
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getContractCode
-
getCode
-
setDiscriminant
-
setContractCode
-
setCode
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-