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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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