跳到主要内容

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:描述 MasterSeed V1 数据结构。

属性

名称类型说明
CodeErrorCode字段 Code:Error 结果中的数据成员。
Messagestring字段 Message:Error 结果中的数据成员。
Causeerror字段 Cause:Error 结果中的数据成员。
Operationstring字段 Operation:Error 结果中的数据成员。
Pathstring字段 Path:Error 结果中的数据成员。
BlockIndex*uint64字段 BlockIndex:Error 结果中的数据成员。
BlockCount*uint64字段 BlockCount:Error 结果中的数据成员。
SourceOffset*uint64字段 SourceOffset:Error 结果中的数据成员。
SeedSize*uint64字段 SeedSize:Error 结果中的数据成员。
ExpectedSeedSize*uint64字段 ExpectedSeedSize:Error 结果中的数据成员。
ExpectedBlockCount*uint64字段 ExpectedBlockCount:Error 结果中的数据成员。
ActualBlockSize*uint64字段 ActualBlockSize:Error 结果中的数据成员。
Expected*Digest字段 Expected:Error 结果中的数据成员。
Actual*Digest字段 Actual:Error 结果中的数据成员。

方法

名称签名说明
Errorfunc Error() string方法 Error:Error 实例提供的操作。
Unwrapfunc Unwrap() error方法 Unwrap:Error 实例提供的操作。

来源

此页面由 TypeDoc/Go AST 元数据和中文翻译目录生成。标识符、类型、错误码和代码示例保持不译。