Package org.stellar.sdk.xdr
Class SCError
java.lang.Object
org.stellar.sdk.xdr.SCError
- All Implemented Interfaces:
XdrElement
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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSCError()SCError(SCErrorType discriminant, Uint32 contractCode, SCErrorCode code) -
Method Summary
Modifier and TypeMethodDescriptionstatic SCError.SCErrorBuilderbuilder()static SCErrordecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic SCErrorfromXdrBase64(String xdr) static SCErrorfromXdrByteArray(byte[] xdr) getCode()inthashCode()voidsetCode(SCErrorCode code) voidsetContractCode(Uint32 contractCode) voidsetDiscriminant(SCErrorType discriminant) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCError
public SCError() -
SCError
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- 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
-