Builder

class Builder
An error code + a free text
Protobuf type TW.THORChainSwap.Proto.Error

Functions

Link copied to clipboard
code of the error
.TW.THORChainSwap.Proto.ErrorCode code = 1;
Link copied to clipboard
optional error message
string message = 2;
Link copied to clipboard
open fun getCode(): ErrorCode
code of the error
.TW.THORChainSwap.Proto.ErrorCode code = 1;
Link copied to clipboard
open fun getCodeValue(): Int
code of the error
.TW.THORChainSwap.Proto.ErrorCode code = 1;
Link copied to clipboard
open fun getMessage(): String
optional error message
string message = 2;
Link copied to clipboard
open fun getMessageBytes(): ByteString
optional error message
string message = 2;
Link copied to clipboard
open fun setCode(value: ErrorCode): THORChainSwap.Error.Builder
code of the error
.TW.THORChainSwap.Proto.ErrorCode code = 1;
Link copied to clipboard
code of the error
.TW.THORChainSwap.Proto.ErrorCode code = 1;
Link copied to clipboard
optional error message
string message = 2;
Link copied to clipboard
open fun setMessageBytes(value: ByteString): THORChainSwap.Error.Builder
optional error message
string message = 2;