# Functions
FormatString returns Output as string in certain format.
FormatStringWithTrans returns Output as string in certain format supporting multi languages.
JSONString returns json string for message.
NewError and returns golang error that contains Error Message ErrorCode can pass zero only when previous error is always a format error that contains non-zero error code.
PrintError prints Error Message in format, only used at top layer of a command.
PrintQuery prints query message in format.
PrintResult prints result message in format.
# Constants
AddressError used if an error is related to address.
APIError used when an API error is happened.
CompilerError used when an error occurs when using the solidity compiler.
ConfigError used when an error about config occurs.
Confirmation represents request for confirmation.
ConvertError used when fail to converting data.
CryptoError used when crypto error occurs.
Error represents error occurred when running a command.
FlagError used when invalid flag is set.
InputError used when error about input occurs.
InstantiationError used when an error during instantiation.
KeystoreError used when an error related to keystore.
NetworkError used when an network error is happened.
Query represents request for answer of certain question.
ReadFileError used when error occurs during reading a file.
Result represents the result of a command.
RuntimeError used when an error occurs in runtime.
SerializationError used when marshal or unmarshal meets error.
UndefinedError used when an error cat't be classified.
UpdateError used when an error occurs when running update command.
ValidationError used when validation is not passed.
Warn represents non-fatal mistake occurred when running a command.
WriteFileError used when error occurs during writing a file.
# Variables
Format is the target of output-format flag.
# Structs
ConfirmationMessage is the struct of an Confirmation output.
ErrorMessage is the struct of an Error output.
Output is used for format output.
# Interfaces
Message is the message part of output.
MessageWithTranslation is the message part of output supporting multi languages.
# Type aliases
ErrorCode is the code of error.
MessageType marks the type of output message.
StringMessage is the Message for string.