boulder: github.com/letsencrypt/boulder/errors Index | Files

package errors

import "github.com/letsencrypt/boulder/errors"

Index

Package Files

errors.go

func BadCSRError Uses

func BadCSRError(msg string, args ...interface{}) error

func BadPublicKeyError Uses

func BadPublicKeyError(msg string, args ...interface{}) error

func CAAError Uses

func CAAError(msg string, args ...interface{}) error

func ConnectionFailureError Uses

func ConnectionFailureError(msg string, args ...interface{}) error

func DNSError Uses

func DNSError(msg string, args ...interface{}) error

func DuplicateError Uses

func DuplicateError(msg string, args ...interface{}) error

func InternalServerError Uses

func InternalServerError(msg string, args ...interface{}) error

func InvalidEmailError Uses

func InvalidEmailError(msg string, args ...interface{}) error

func Is Uses

func Is(err error, errType ErrorType) bool

Is is a convenience function for testing the internal type of an BoulderError

func MalformedError Uses

func MalformedError(msg string, args ...interface{}) error

func MissingSCTsError Uses

func MissingSCTsError(msg string, args ...interface{}) error

func New Uses

func New(errType ErrorType, msg string, args ...interface{}) error

New is a convenience function for creating a new BoulderError

func NotFoundError Uses

func NotFoundError(msg string, args ...interface{}) error

func OrderNotReadyError Uses

func OrderNotReadyError(msg string, args ...interface{}) error

func RateLimitError Uses

func RateLimitError(msg string, args ...interface{}) error

func RejectedIdentifierError Uses

func RejectedIdentifierError(msg string, args ...interface{}) error

func UnauthorizedError Uses

func UnauthorizedError(msg string, args ...interface{}) error

func WrongAuthorizationStateError Uses

func WrongAuthorizationStateError(msg string, args ...interface{}) error

type BoulderError Uses

type BoulderError struct {
    Type      ErrorType
    Detail    string
    SubErrors []SubBoulderError
}

BoulderError represents internal Boulder errors

func (*BoulderError) Error Uses

func (be *BoulderError) Error() string

func (*BoulderError) WithSubErrors Uses

func (be *BoulderError) WithSubErrors(subErrs []SubBoulderError) *BoulderError

WithSubErrors returns a new BoulderError instance created by adding the provided subErrs to the existing BoulderError.

type ErrorType Uses

type ErrorType int

ErrorType provides a coarse category for BoulderErrors

const (
    InternalServer ErrorType = iota

    Malformed
    Unauthorized
    NotFound
    RateLimit
    RejectedIdentifier
    InvalidEmail
    ConnectionFailure
    WrongAuthorizationState
    CAA
    MissingSCTs
    Duplicate
    OrderNotReady
    DNS
    BadPublicKey
    BadCSR
)

type SubBoulderError Uses

type SubBoulderError struct {
    *BoulderError
    Identifier identifier.ACMEIdentifier
}

SubBoulderError represents sub-errors specific to an identifier that are related to a top-level internal Boulder error.

Package errors imports 2 packages (graph) and is imported by 120 packages. Updated 2019-10-19. Refresh now. Tools for package owners.