werror

package
v0.0.0-...-2b6f177 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Status        int            `json:"status"`
	FailedReasons []FailedReason `json:"messages"`
	// contains filtered or unexported fields
}

ErrorResponse - エラーレスポンス

func NewBadRequestError

func NewBadRequestError(err error) *ErrorResponse

NewBadRequestError - 不正なリクエストエラー constructor

func NewConflictError

func NewConflictError(err error) *ErrorResponse

NewConflictError - バージョンが一致しなかった時に使用 constructor of ConflictError

func NewForbiddenError

func NewForbiddenError(err error) *ErrorResponse

NewForbiddenError - 権限がなかった時に使用

func NewInternalError

func NewInternalError(err error) *ErrorResponse

NewInternalError - リポジトリエラー

func NewNotFoundError

func NewNotFoundError(err error) *ErrorResponse

NewNotFoundError - データが見つからなかった時に使用

func NewUnauthorizedError

func NewUnauthorizedError(err error) *ErrorResponse

NewUnauthorizedError - 認証されてない時に使用

func NewValidationError

func NewValidationError(er error) *ErrorResponse

NewValidationError - バリデーションエラー constructor

func (*ErrorResponse) Error

func (err *ErrorResponse) Error() string

Error - standard error format

func (*ErrorResponse) Unwrap

func (err *ErrorResponse) Unwrap() error

Unwrap - unwrap the error

type FailedReason

type FailedReason struct {
	Message string `json:"message"`
}

FailedReason - 失敗理由

Jump to

Keyboard shortcuts

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