errors

package
v0.12.103 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MultiError

func MultiError(errors []error) error

Types

type ErrorCode

type ErrorCode int64
const (
	InvalidJSON ErrorCode = 1 + iota
	InvalidCertificateID
	InvalidCertificateName
	InvalidDeployID
	InvalidDeployName
	InvalidEnvironmentID
	InvalidEnvironmentName
	InvalidJobID
	InvalidJobName
	InvalidLoadBalancerID
	InvalidLoadBalancerName
	InvalidServiceID
	InvalidServiceName
	InvalidTaskID
	InvalidTaskName
	InvalidEntityType
	InvalidTagKey
	InvalidTagValue
	MissingParameter
	Throttled
	UnexpectedError
	FailedTagging
	DeployDoesNotExist
	EnvironmentDoesNotExist
	JobDoesNotExist
	LoadBalancerDoesNotExist
	LoadBalancerAttributeNotFound
	ServiceDoesNotExist
	TaskDoesNotExist
)

type ServerError

type ServerError struct {
	Code ErrorCode
	Err  error
}

func New

func New(code ErrorCode, err error) *ServerError

func Newf

func Newf(code ErrorCode, format string, tokens ...interface{}) *ServerError

func (*ServerError) Error

func (this *ServerError) Error() string

func (*ServerError) Model

func (this *ServerError) Model() models.ServerError

Jump to

Keyboard shortcuts

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