errors

package
v0.0.0-...-98addd5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectionFailureError

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

func InternalServerError

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

func InvalidEmailError

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

func Is

func Is(err error, errType ErrorType) bool

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

func MalformedError

func MalformedError(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 NotSupportedError

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

func RateLimitError

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

func RejectedIdentifierError

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

func SignatureValidationError

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

func TooManyRequestsError

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

func UnauthorizedError

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

func UnsupportedIdentifierError

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

Types

type BoulderError

type BoulderError struct {
	Type   ErrorType
	Detail string
}

BoulderError represents internal Boulder errors

func (*BoulderError) Error

func (be *BoulderError) Error() string

type ErrorType

type ErrorType int

ErrorType provides a coarse category for BoulderErrors

const (
	InternalServer ErrorType = iota
	NotSupported
	Malformed
	Unauthorized
	NotFound
	SignatureValidation
	RateLimit
	TooManyRequests
	RejectedIdentifier
	UnsupportedIdentifier
	InvalidEmail
	ConnectionFailure
)

Jump to

Keyboard shortcuts

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