errors

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationFailed

type AuthenticationFailed struct {
	Provider, UserID, Token string
}

AuthenticationFailed happens when an authentication provider does not recognize the access token

func NewAuthenticationFailed

func NewAuthenticationFailed(provider, userID, token string) *AuthenticationFailed

NewAuthenticationFailed creates a new error

func (AuthenticationFailed) Error

func (err AuthenticationFailed) Error() string

Error string

type AuthenticationProviderNotSupported

type AuthenticationProviderNotSupported struct {
	Provider string
}

AuthenticationProviderNotSupported happens when a query should return a document but it's not found

func NewAuthenticationProviderNotSupported

func NewAuthenticationProviderNotSupported(provider string) *AuthenticationProviderNotSupported

NewAuthenticationProviderNotSupported creates a new error

func (AuthenticationProviderNotSupported) Error

Error string

type DocumentNotFoundError

type DocumentNotFoundError struct {
	Collection string
	ID         string
}

DocumentNotFoundError happens when a query should return a document but it's not found

func NewDocumentNotFoundError

func NewDocumentNotFoundError(collection string, id string) *DocumentNotFoundError

NewDocumentNotFoundError creates a new error

func (DocumentNotFoundError) Error

func (err DocumentNotFoundError) Error() string

Error string

type DonationCooldownViolatedError

type DonationCooldownViolatedError struct {
	GameID               string
	PlayerID             string
	TotalWeightForPeriod int
	MaxWeightForPerior   int
}

DonationCooldownViolatedError happens when a donation request is created in less than <cooldown> hours after last one

func (DonationCooldownViolatedError) Error

Error string

type DonationRequestCooldownViolatedError

type DonationRequestCooldownViolatedError struct {
	GameID  string
	ItemKey string
	Time    int64
}

DonationRequestCooldownViolatedError happens when a donation request is created in less than <cooldown> hours after last one

func (DonationRequestCooldownViolatedError) Error

Error string

type ItemNotFoundInGameError

type ItemNotFoundInGameError struct {
	ItemKey string
	GameID  string
}

ItemNotFoundInGameError happens when a donation happens for an item that's not in the game

func (ItemNotFoundInGameError) Error

func (err ItemNotFoundInGameError) Error() string

Error string

type LimitOfItemsInDonationRequestReachedError

type LimitOfItemsInDonationRequestReachedError struct {
	GameID            string
	DonationRequestID string
	ItemKey           string
	Amount            int
}

LimitOfItemsInDonationRequestReachedError happens when a donation happens for an item that's not in the game

func (LimitOfItemsInDonationRequestReachedError) Error

Error string

type LimitOfItemsPerPlayerInDonationRequestReachedError

type LimitOfItemsPerPlayerInDonationRequestReachedError struct {
	GameID               string
	DonationRequestID    string
	ItemKey              string
	Amount               int
	Player               string
	CurrentDonationCount int
}

LimitOfItemsPerPlayerInDonationRequestReachedError happens when a donation happens for an item that's not in the game

func (LimitOfItemsPerPlayerInDonationRequestReachedError) Error

Error string

type ParameterIsRequiredError

type ParameterIsRequiredError struct {
	Parameter string
	Model     string
}

ParameterIsRequiredError happens when a parameter for a given instance to be saved is required but is empty

func (ParameterIsRequiredError) Error

func (err ParameterIsRequiredError) Error() string

Error string

Jump to

Keyboard shortcuts

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