Skip to main content

Error

Error struct { Code ErrorCode Message string Cause error Operation string Path string BlockIndex *uint64 BlockCount *uint64 SourceOffset *uint64 SeedSize *uint64 ExpectedSeedSize *uint64 ExpectedBlockCount *uint64 ActualBlockSize *uint64 Expected *Digest Actual *Digest }

Error is the structured error returned by the SDK. Context fields are optional and are populated only when relevant to the failure.

Properties​

NameTypeDescription
CodeErrorCodeField Code of Error.
MessagestringField Message of Error.
CauseerrorField Cause of Error.
OperationstringField Operation of Error.
PathstringField Path of Error.
BlockIndex*uint64Field BlockIndex of Error.
BlockCount*uint64Field BlockCount of Error.
SourceOffset*uint64Field SourceOffset of Error.
SeedSize*uint64Field SeedSize of Error.
ExpectedSeedSize*uint64Field ExpectedSeedSize of Error.
ExpectedBlockCount*uint64Field ExpectedBlockCount of Error.
ActualBlockSize*uint64Field ActualBlockSize of Error.
Expected*DigestField Expected of Error.
Actual*DigestField Actual of Error.

Methods​

NameSignatureDescription
Errorfunc Error() stringMethod Error of Error.
Unwrapfunc Unwrap() errorMethod Unwrap of Error.

Source​

This page is generated from SDK source metadata and the translation catalog.