Documentation ¶
Overview ¶
Package failure lists all the possible errors that can be returned either by `protein` or any of its sub-packages.
Protein uses the pkg/errors1 package to handle error propagation throughout the call stack; please take a look at the related documentation for more information on how to properly handle these errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsProteinError ¶
IsProteinError returns true if `err` originates from this package.
Types ¶
type Error ¶
type Error int
Error is an error returned either by `protein` or any of its sub-packages.
Use `IsProteinError(err)` to know whether or not an error originates from this package.
const ( /* Common */ ErrUnknown Error = iota // unknown error ErrSchemaNotFound Error = iota // schema's UID not found ErrDependencyNotFound Error = iota // dependency's UID not found /* Protostruct */ ErrSchemaNotMessageType Error = iota // schema is not of messsage type ErrFieldTypeNotSupported Error = iota // field type not supported ErrFieldLabelNotSupported Error = iota // field label not supported /* Protoscan */ ErrFDAlreadyInstanciated Error = iota // proto-file-descriptor instanciated multiple times ErrFDUnknownType Error = iota // proto-file-descriptor is of unknown type ErrFDMissingDependency Error = iota // proto-file-descriptor depends on missing schemas )
Click to show internal directories.
Click to hide internal directories.