{"modulePath":"github.com/hsqbyte/protospec","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Types\n\n```go\ntype AlgorithmNotFoundError struct {\n\tName string\n}\n```\nAlgorithmNotFoundError indicates a checksum algorithm was not found.\n\n```go\nfunc (e *AlgorithmNotFoundError) Error() string\n```\n\n```go\ntype ChecksumError struct {\n\tFieldName string\n\tExpected  uint64\n\tActual    uint64\n}\n```\nChecksumError indicates a checksum verification failure.\n\n```go\nfunc (e *ChecksumError) Error() string\n```\n\n```go\ntype FormatNotFoundError struct {\n\tName string\n}\n```\nFormatNotFoundError indicates a display format was not found.\n\n```go\nfunc (e *FormatNotFoundError) Error() string\n```\n\n```go\ntype InsufficientDataError struct {\n\tExpectedMin int\n\tActualLen   int\n}\n```\nInsufficientDataError indicates not enough bytes to decode.\n\n```go\nfunc (e *InsufficientDataError) Error() string\n```\n\n```go\ntype InvalidFieldError struct {\n\tFieldName   string\n\tValidRange  string\n\tActualValue any\n}\n```\nInvalidFieldError indicates a field value is outside its valid range.\n\n```go\nfunc (e *InvalidFieldError) Error() string\n```\n\n```go\ntype PDLSemanticError struct {\n\tFieldName string\n\tMessage   string\n}\n```\nPDLSemanticError represents a semantic error in a PDL definition.\n\n```go\nfunc (e *PDLSemanticError) Error() string\n```\n\n```go\ntype PDLSyntaxError struct {\n\tLine    int\n\tColumn  int\n\tMessage string\n\tSource  string // optional: the source line for context\n}\n```\nPDLSyntaxError represents a syntax error encountered during PDL parsing.\n\n```go\nfunc (e *PDLSyntaxError) Error() string\n```\n\n```go\ntype ProtocolConflictError struct {\n\tName string\n}\n```\nProtocolConflictError indicates a protocol name is already registered.\n\n```go\nfunc (e *ProtocolConflictError) Error() string\n```\n\n```go\ntype ProtocolNotFoundError struct {\n\tName string\n}\n```\nProtocolNotFoundError indicates a protocol name was not found in the registry.\n\n```go\nfunc (e *ProtocolNotFoundError) Error() string\n```\n\n","path":"github.com/hsqbyte/protospec/src/errors","name":"errors","synopsis":"","isRedistributable":true}
