2016-12-08 10:08:34 +00:00
|
|
|
#ifndef IPFS_ERRS_H
|
2016-12-09 02:29:50 +00:00
|
|
|
#define IPFS_ERRS_H
|
2016-12-08 10:08:34 +00:00
|
|
|
|
|
|
|
char *Err[] = {
|
|
|
|
NULL,
|
|
|
|
"ErrAllocFailed",
|
|
|
|
"ErrNULLPointer",
|
2016-12-16 03:30:40 +00:00
|
|
|
"ErrUnknow",
|
2016-12-08 10:08:34 +00:00
|
|
|
"ErrPipe",
|
|
|
|
"ErrPoll",
|
|
|
|
"Could not publish name."
|
|
|
|
"Could not resolve name.",
|
|
|
|
"Could not resolve name (recursion limit exceeded).",
|
|
|
|
"expired record",
|
|
|
|
"unrecognized validity type",
|
|
|
|
"not a valid proquint string",
|
|
|
|
"not a valid domain name",
|
2016-12-09 02:29:50 +00:00
|
|
|
"not a valid dnslink entry",
|
2016-12-08 10:08:34 +00:00
|
|
|
// ErrBadPath is returned when a given path is incorrectly formatted
|
|
|
|
"invalid 'ipfs ref' path",
|
|
|
|
// Paths after a protocol must contain at least one component
|
|
|
|
"path must contain at least one component",
|
|
|
|
"TODO: ErrCidDecode",
|
|
|
|
NULL,
|
2016-12-09 02:29:50 +00:00
|
|
|
"no link named %s under %s",
|
|
|
|
"ErrInvalidParam",
|
|
|
|
// ErrResolveLimit is returned when a recursive resolution goes over
|
|
|
|
// the limit.
|
2016-12-16 03:30:40 +00:00
|
|
|
"resolve depth exceeded",
|
|
|
|
NULL,
|
|
|
|
"Invalid value. Not signed by PrivateKey corresponding to %s"
|
2016-12-08 10:08:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
ErrAllocFailed = 1,
|
|
|
|
ErrNULLPointer,
|
2016-12-16 03:30:40 +00:00
|
|
|
ErrUnknow,
|
2016-12-08 10:08:34 +00:00
|
|
|
ErrPipe,
|
|
|
|
ErrPoll,
|
|
|
|
ErrPublishFailed,
|
|
|
|
ErrResolveFailed,
|
|
|
|
ErrResolveRecursion,
|
|
|
|
ErrExpiredRecord,
|
|
|
|
ErrUnrecognizedValidity,
|
|
|
|
ErrInvalidProquint,
|
|
|
|
ErrInvalidDomain,
|
2016-12-09 02:29:50 +00:00
|
|
|
ErrInvalidDNSLink,
|
2016-12-08 10:08:34 +00:00
|
|
|
ErrBadPath,
|
|
|
|
ErrNoComponents,
|
|
|
|
ErrCidDecode,
|
|
|
|
ErrNoLink,
|
2016-12-09 02:29:50 +00:00
|
|
|
ErrNoLinkFmt,
|
|
|
|
ErrInvalidParam,
|
2016-12-16 03:30:40 +00:00
|
|
|
ErrResolveLimit,
|
|
|
|
ErrInvalidSignature,
|
|
|
|
ErrInvalidSignatureFmt
|
2016-12-08 10:08:34 +00:00
|
|
|
} ErrsIdx;
|
|
|
|
#endif // IPFS_ERRS_H
|