errors

package
v0.0.0-...-30a5167 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2021 License: MPL-2.0 Imports: 2 Imported by: 199

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadCSRError

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

func BadPublicKeyError

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

func CAAError

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

func ConnectionFailureError

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

func DNSError

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

func DuplicateError

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

func InternalServerError

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

func InvalidEmailError

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

func MalformedError

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

func MissingSCTsError

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

func New

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

New is a convenience function for creating a new BoulderError

func NotFoundError

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

func OrderNotReadyError

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

func RateLimitError

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

func RejectedIdentifierError

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

func UnauthorizedError

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

Types

type BoulderError

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

BoulderError represents internal Boulder errors

func (*BoulderError) Error

func (be *BoulderError) Error() string

func (*BoulderError) Unwrap

func (be *BoulderError) Unwrap() error

func (*BoulderError) WithSubErrors

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

type ErrorType int

ErrorType provides a coarse category for BoulderErrors. Objects of type ErrorType should never be directly returned by other functions; instead use the methods below to create an appropriate BoulderError wrapping one of these types.

const (
	InternalServer ErrorType = iota

	Malformed
	Unauthorized
	NotFound
	RateLimit
	RejectedIdentifier
	InvalidEmail
	ConnectionFailure

	CAA
	MissingSCTs
	Duplicate
	OrderNotReady
	DNS
	BadPublicKey
	BadCSR
)

func (ErrorType) Error

func (ErrorType) Error() string

type SubBoulderError

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL