mirror of
https://github.com/miekg/dns.git
synced 2025-12-16 09:11:34 +01:00
prefix errors with dns:
This commit is contained in:
parent
104d875a75
commit
b07a05d5ca
66
msg.go
66
msg.go
@ -26,39 +26,39 @@ import (
|
|||||||
const maxCompressionOffset = 2 << 13 // We have 14 bits for the compression pointer
|
const maxCompressionOffset = 2 << 13 // We have 14 bits for the compression pointer
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrUnpack error = &Error{Err: "unpacking failed"}
|
ErrUnpack error = &Error{Err: "dns: unpacking failed"}
|
||||||
ErrPack error = &Error{Err: "packing failed"}
|
ErrPack error = &Error{Err: "dns: packing failed"}
|
||||||
ErrId error = &Error{Err: "id mismatch"}
|
ErrId error = &Error{Err: "dns: id mismatch"}
|
||||||
ErrBuf error = &Error{Err: "buffer size too large"}
|
ErrBuf error = &Error{Err: "dns: buffer size too large"}
|
||||||
ErrShortRead error = &Error{Err: "short read"}
|
ErrShortRead error = &Error{Err: "dns: short read"}
|
||||||
ErrConn error = &Error{Err: "conn holds both UDP and TCP connection"}
|
ErrConn error = &Error{Err: "dns: conn holds both UDP and TCP connection"}
|
||||||
ErrConnEmpty error = &Error{Err: "conn has no connection"}
|
ErrConnEmpty error = &Error{Err: "dns: conn has no connection"}
|
||||||
ErrServ error = &Error{Err: "no servers could be reached"}
|
ErrServ error = &Error{Err: "dns: no servers could be reached"}
|
||||||
ErrKey error = &Error{Err: "bad key"}
|
ErrKey error = &Error{Err: "dns: bad key"}
|
||||||
ErrPrivKey error = &Error{Err: "bad private key"}
|
ErrPrivKey error = &Error{Err: "dns: bad private key"}
|
||||||
ErrKeySize error = &Error{Err: "bad key size"}
|
ErrKeySize error = &Error{Err: "dns: bad key size"}
|
||||||
ErrKeyAlg error = &Error{Err: "bad key algorithm"}
|
ErrKeyAlg error = &Error{Err: "dns: bad key algorithm"}
|
||||||
ErrAlg error = &Error{Err: "bad algorithm"}
|
ErrAlg error = &Error{Err: "dns: bad algorithm"}
|
||||||
ErrTime error = &Error{Err: "bad time"}
|
ErrTime error = &Error{Err: "dns: bad time"}
|
||||||
ErrNoSig error = &Error{Err: "no signature found"}
|
ErrNoSig error = &Error{Err: "dns: no signature found"}
|
||||||
ErrSig error = &Error{Err: "bad signature"}
|
ErrSig error = &Error{Err: "dns: bad signature"}
|
||||||
ErrSecret error = &Error{Err: "no secret defined"}
|
ErrSecret error = &Error{Err: "dns: no secret defined"}
|
||||||
ErrSigGen error = &Error{Err: "bad signature generation"}
|
ErrSigGen error = &Error{Err: "dns: bad signature generation"}
|
||||||
ErrAuth error = &Error{Err: "bad authentication"}
|
ErrAuth error = &Error{Err: "dns: bad authentication"}
|
||||||
ErrXfrSoa error = &Error{Err: "no SOA seen"}
|
ErrXfrSoa error = &Error{Err: "dns: no SOA seen"}
|
||||||
ErrXfrLast error = &Error{Err: "last SOA"}
|
ErrXfrLast error = &Error{Err: "dns: last SOA"}
|
||||||
ErrXfrType error = &Error{Err: "no ixfr, nor axfr"}
|
ErrXfrType error = &Error{Err: "dns: no ixfr, nor axfr"}
|
||||||
ErrHandle error = &Error{Err: "handle is nil"}
|
ErrHandle error = &Error{Err: "dns: handle is nil"}
|
||||||
ErrChan error = &Error{Err: "channel is nil"}
|
ErrChan error = &Error{Err: "dns: channel is nil"}
|
||||||
ErrName error = &Error{Err: "type not found for name"}
|
ErrName error = &Error{Err: "dns: type not found for name"}
|
||||||
ErrRRset error = &Error{Err: "invalid rrset"}
|
ErrRRset error = &Error{Err: "dns: invalid rrset"}
|
||||||
ErrDenialNsec3 error = &Error{Err: "no NSEC3 records"}
|
ErrDenialNsec3 error = &Error{Err: "dns: no NSEC3 records"}
|
||||||
ErrDenialCe error = &Error{Err: "no matching closest encloser found"}
|
ErrDenialCe error = &Error{Err: "dns: no matching closest encloser found"}
|
||||||
ErrDenialNc error = &Error{Err: "no covering NSEC3 found for next closer"}
|
ErrDenialNc error = &Error{Err: "dns: no covering NSEC3 found for next closer"}
|
||||||
ErrDenialSo error = &Error{Err: "no covering NSEC3 found for source of synthesis"}
|
ErrDenialSo error = &Error{Err: "dns: no covering NSEC3 found for source of synthesis"}
|
||||||
ErrDenialBit error = &Error{Err: "type not denied in NSEC3 bitmap"}
|
ErrDenialBit error = &Error{Err: "dns: type not denied in NSEC3 bitmap"}
|
||||||
ErrDenialWc error = &Error{Err: "wildcard exist, but closest encloser is denied"}
|
ErrDenialWc error = &Error{Err: "dns: wildcard exist, but closest encloser is denied"}
|
||||||
ErrDenialHdr error = &Error{Err: "message rcode conflicts with message content"}
|
ErrDenialHdr error = &Error{Err: "dns: message rcode conflicts with message content"}
|
||||||
)
|
)
|
||||||
|
|
||||||
// A manually-unpacked version of (id, bits).
|
// A manually-unpacked version of (id, bits).
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user