errors

package
v0.0.0-...-f0901d5 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

type ApiError struct {
	Previous   error
	StatusCode int
	Message    string
	Stack      []byte
}

func (ApiError) Error

func (a ApiError) Error() string

func (ApiError) GetPrevious

func (a ApiError) GetPrevious() error

func (ApiError) GetStatusCode

func (a ApiError) GetStatusCode() int

type ApiErrorInterface

type ApiErrorInterface interface {
	GetStatusCode() int
	Error() string
	GetPrevious() error
}

type DataConversionError

type DataConversionError struct {
	ApiError
}

func (DataConversionError) Error

func (c DataConversionError) Error() string

func (DataConversionError) GetStatusCode

func (c DataConversionError) GetStatusCode() int

type DataNotFoundError

type DataNotFoundError struct {
	ApiError
	DataName string
}

func (DataNotFoundError) Error

func (c DataNotFoundError) Error() string

func (DataNotFoundError) GetStatusCode

func (c DataNotFoundError) GetStatusCode() int

type DatabaseQueryError

type DatabaseQueryError struct {
	ApiError
	Query        string
	CauseMessage string
}

func (*DatabaseQueryError) Error

func (d *DatabaseQueryError) Error() string

func (DatabaseQueryError) GetStatusCode

func (d DatabaseQueryError) GetStatusCode() int

type DatabaseUpdateError

type DatabaseUpdateError struct {
	ApiError
	Query        string
	CauseMessage string
}

func (*DatabaseUpdateError) Error

func (d *DatabaseUpdateError) Error() string

func (DatabaseUpdateError) GetStatusCode

func (d DatabaseUpdateError) GetStatusCode() int

type DynamoPutError

type DynamoPutError struct {
	ApiError
}

func (DynamoPutError) Error

func (d DynamoPutError) Error() string

func (DynamoPutError) GetStatusCode

func (d DynamoPutError) GetStatusCode() int

type DynamoQueryError

type DynamoQueryError struct {
	ApiError
	Query *dynamodb.QueryInput
}

func (DynamoQueryError) Error

func (d DynamoQueryError) Error() string

func (DynamoQueryError) GetStatusCode

func (d DynamoQueryError) GetStatusCode() int

type JSONParseError

type JSONParseError struct {
	ApiError
}

func (JSONParseError) Error

func (j JSONParseError) Error() string

func (JSONParseError) GetStatusCode

func (j JSONParseError) GetStatusCode() int

type JWTSignatureMismatch

type JWTSignatureMismatch struct{}

func (JWTSignatureMismatch) Error

func (j JWTSignatureMismatch) Error() string

type JWTTokenExpiredError

type JWTTokenExpiredError struct{}

func (JWTTokenExpiredError) Error

func (j JWTTokenExpiredError) Error() string

type LogicError

type LogicError struct {
	ApiError
}

func (LogicError) Error

func (a LogicError) Error() string

func (LogicError) GetStatusCode

func (a LogicError) GetStatusCode() int

type MissingAuthHeader

type MissingAuthHeader struct {
	ApiError
}

func (MissingAuthHeader) Error

func (m MissingAuthHeader) Error() string

func (MissingAuthHeader) GetStatusCode

func (m MissingAuthHeader) GetStatusCode() int

type MissingRequiredRequestInformationError

type MissingRequiredRequestInformationError struct {
	Needs []string
}

func (MissingRequiredRequestInformationError) Error

func (MissingRequiredRequestInformationError) GetStatusCode

func (m MissingRequiredRequestInformationError) GetStatusCode() int

type PasswordToShort

type PasswordToShort struct {
	ApiError
}

func (PasswordToShort) Error

func (p PasswordToShort) Error() string

func (PasswordToShort) GetStatusCode

func (p PasswordToShort) GetStatusCode() int

type UnauthorizedError

type UnauthorizedError struct {
	ApiError
}

func (UnauthorizedError) Error

func (u UnauthorizedError) Error() string

func (UnauthorizedError) GetStatusCode

func (u UnauthorizedError) GetStatusCode() int

type UserDoesNotHaveSufficientPermissions

type UserDoesNotHaveSufficientPermissions struct {
	ApiError
}

func (UserDoesNotHaveSufficientPermissions) Error

func (UserDoesNotHaveSufficientPermissions) GetStatusCode

func (u UserDoesNotHaveSufficientPermissions) GetStatusCode() int

type UserNotFound

type UserNotFound struct {
	ApiError
	Query string
}

func (UserNotFound) Error

func (u UserNotFound) Error() string

func (UserNotFound) GetStatusCode

func (u UserNotFound) GetStatusCode() int

type WrongPasswordError

type WrongPasswordError struct {
	ApiError
}

func (WrongPasswordError) Error

func (w WrongPasswordError) Error() string

func (WrongPasswordError) GetStatusCode

func (w WrongPasswordError) GetStatusCode() int

Jump to

Keyboard shortcuts

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