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
| Name | Type | Description |
|---|---|---|
Code | ErrorCode | Field Code of Error. |
Message | string | Field Message of Error. |
Cause | error | Field Cause of Error. |
Operation | string | Field Operation of Error. |
Path | string | Field Path of Error. |
BlockIndex | *uint64 | Field BlockIndex of Error. |
BlockCount | *uint64 | Field BlockCount of Error. |
SourceOffset | *uint64 | Field SourceOffset of Error. |
SeedSize | *uint64 | Field SeedSize of Error. |
ExpectedSeedSize | *uint64 | Field ExpectedSeedSize of Error. |
ExpectedBlockCount | *uint64 | Field ExpectedBlockCount of Error. |
ActualBlockSize | *uint64 | Field ActualBlockSize of Error. |
Expected | *Digest | Field Expected of Error. |
Actual | *Digest | Field Actual of Error. |
Methods
| Name | Signature | Description |
|---|---|---|
Error | func Error() string | Method Error of Error. |
Unwrap | func Unwrap() error | Method Unwrap of Error. |
Source
This page is generated from SDK source metadata and the translation catalog.