errors

package
v0.0.0-...-aace954 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ErrCodeBcryptPasswordHashError = "BcryptPasswordHashError"

ErrCodeBcryptPasswordHashError an error occurred while processing bcrypt hash for password

View Source
const ErrCodeComponentNotImplemented = "ComponentNotImplemented"

ErrCodeComponentNotImplemented component not implemented

View Source
const ErrCodeComputeHashFailed = "ComputeHashFailed"

ErrCodeComputeHashFailed a failure occurred while attempting to calculate a hash

View Source
const ErrCodeContactAlreadyConfirmed = "ContactAlreadyConfirmed"

ErrCodeContactAlreadyConfirmed contact is already confirmed

View Source
const ErrCodeContactAlreadyMarkedPrimary = "ContactAlreadyMarkedPrimary"

ErrCodeContactAlreadyMarkedPrimary contact is already marked as primary

View Source
const ErrCodeContactNotConfirmed = "ContactNotConfirmed"

ErrCodeContactNotConfirmed contact is not confirmed

View Source
const ErrCodeContactToAddAlreadyConfirmed = "ContactToAddAlreadyConfirmed"

ErrCodeContactToAddAlreadyConfirmed contact to add to account is already confirmed

View Source
const ErrCodeContactToAddMarkedAsPrimary = "ContactToAddMarkedAsPrimary"

ErrCodeContactToAddMarkedAsPrimary cannot add contact that is marked as primary must go through primary contact reassignment flow

View Source
const ErrCodeDatastoreTransactionAbortFailed = "DatastoreTransactionAbortFailed"

ErrCodeDatastoreTransactionAbortFailed data store transaction was aborted

View Source
const ErrCodeDatastoreTransactionFailed = "DatastoreTransactionFailed"

ErrCodeDatastoreTransactionFailed data store transaction was aborted

View Source
const ErrCodeExpiredToken = "ExpiredToken"

ErrCodeExpiredToken token has expired

View Source
const ErrCodeFailedToParseObjectID = "FailedToParseObjectID"

ErrCodeFailedToParseObjectID failed to parse an object id string

View Source
const ErrCodeGenerateUUIDFailed = "GenerateUUIDFailed"

ErrCodeGenerateUUIDFailed failed to generate uuid

View Source
const ErrCodeInvalidAppCreation = "InvalidAppCreation"

ErrCodeInvalidAppCreation this app had bad or missing required fields

View Source
const ErrCodeInvalidContactType = "InvalidContactType"

ErrCodeInvalidContactType the contact type provided is not valid

View Source
const ErrCodeInvalidScopeCreation = "InvalidScopeCreation"

ErrCodeInvalidScopeCreation this scope had bad or missing required fields

View Source
const ErrCodeInvalidToken = "InvalidToken"

ErrCodeInvalidToken expired or invalid token was found with the given id.

View Source
const ErrCodeInvalidType = "InvalidType"

ErrCodeInvalidType invalid type encountered

View Source
const ErrCodeInvalidValue = "InvalidValue"

ErrCodeInvalidValue an invalid value was found

View Source
const ErrCodeLoginContactNotPrimary = "LoginContactNotPrimary"

ErrCodeLoginContactNotPrimary contact for login is not a primary contact

View Source
const ErrCodeLoginFailedWrongPassword = "LoginFailedWrongPassword"

ErrCodeLoginFailedWrongPassword login for user failed due to incorrect password

View Source
const ErrCodeLoginPrimaryContactNotConfirmed = "LoginPrimaryContactNotConfirmed"

ErrCodeLoginPrimaryContactNotConfirmed primary contact for login is not confirmed

View Source
const ErrCodeMalfomedToken = "MalfomedToken"

ErrCodeMalfomedToken token is not valid

View Source
const ErrCodeMultipleConfirmedInstancesOfContact = "MultipleConfirmedInstancesOfContact"

ErrCodeMultipleConfirmedInstancesOfContact multiple confirmed instance of contact found

View Source
const ErrCodeNilNotAllowed = "NilNotAllowed"

ErrCodeNilNotAllowed a nil value was encountered, but not allowed

View Source
const ErrCodeNilParameterNotAllowed = "NilParameterNotAllowed"

ErrCodeNilParameterNotAllowed a nil value was encountered for a parameter, but not allowed

View Source
const ErrCodeNoAppFound = "NoAppFound"

ErrCodeNoAppFound no app found for given query

View Source
const ErrCodeNoContactFound = "NoContactFound"

ErrCodeNoContactFound no contact found for given query

View Source
const ErrCodeNoNewPasswordHashProvided = "NoNewPasswordHashProvided"

ErrCodeNoNewPasswordHashProvided no new password hash was provided

View Source
const ErrCodeNoScopeFound = "NoScopeFound"

ErrCodeNoScopeFound no scope found for given query

View Source
const ErrCodeNoUserFound = "NoUserFound"

ErrCodeNoUserFound no user found for given query

View Source
const ErrCodeNotImplemented = "NotImplemented"

ErrCodeNotImplemented functionality is not implemented

View Source
const ErrCodePasswordResetContactNotPrimary = "PasswordResetContactNotPrimary"

ErrCodePasswordResetContactNotPrimary contact for password reset is not a primary contact

View Source
const ErrCodeRegistrationContactAlreadyConfirmed = "RegistrationContactAlreadyConfirmed"

ErrCodeRegistrationContactAlreadyConfirmed contact for registration is already confirmed

View Source
const ErrCodeRepoQueryFailed = "RepoQueryFailed"

ErrCodeRepoQueryFailed repo query failed with error

View Source
const ErrCodeRepoQueryFailedWithMetaData = "RepoQueryFailedWithMetaData"

ErrCodeRepoQueryFailedWithMetaData repo query failed with error

View Source
const ErrCodeTemplateRenderError = "TemplateRenderError"

ErrCodeTemplateRenderError An error occurred while rendering template

View Source
const ErrCodeUserIDsDoNotMatch = "UserIDsDoNotMatch"

ErrCodeUserIDsDoNotMatch user id provided do not match

View Source
const ErrCodeUserLockedOut = "UserLockedOut"

ErrCodeUserLockedOut attempted login by locked out user

View Source
const ErrCodeWrongTokenType = "WrongTokenType"

ErrCodeWrongTokenType token type does not match expected token type

View Source
const ErrCodeWrongType = "WrongType"

ErrCodeWrongType unexpected type encountered

Variables

This section is empty.

Functions

func IsBcryptPasswordHashErrorError

func IsBcryptPasswordHashErrorError(err errors.ReadOnlyRichError) bool

func IsComponentNotImplementedError

func IsComponentNotImplementedError(err errors.ReadOnlyRichError) bool

func IsComputeHashFailedError

func IsComputeHashFailedError(err errors.ReadOnlyRichError) bool

func IsContactAlreadyConfirmedError

func IsContactAlreadyConfirmedError(err errors.ReadOnlyRichError) bool

func IsContactAlreadyMarkedPrimaryError

func IsContactAlreadyMarkedPrimaryError(err errors.ReadOnlyRichError) bool

func IsContactNotConfirmedError

func IsContactNotConfirmedError(err errors.ReadOnlyRichError) bool

func IsContactToAddAlreadyConfirmedError

func IsContactToAddAlreadyConfirmedError(err errors.ReadOnlyRichError) bool

func IsContactToAddMarkedAsPrimaryError

func IsContactToAddMarkedAsPrimaryError(err errors.ReadOnlyRichError) bool

func IsDatastoreTransactionAbortFailedError

func IsDatastoreTransactionAbortFailedError(err errors.ReadOnlyRichError) bool

func IsDatastoreTransactionFailedError

func IsDatastoreTransactionFailedError(err errors.ReadOnlyRichError) bool

func IsExpiredTokenError

func IsExpiredTokenError(err errors.ReadOnlyRichError) bool

func IsFailedToParseObjectIDError

func IsFailedToParseObjectIDError(err errors.ReadOnlyRichError) bool

func IsGenerateUUIDFailedError

func IsGenerateUUIDFailedError(err errors.ReadOnlyRichError) bool

func IsInvalidAppCreationError

func IsInvalidAppCreationError(err errors.ReadOnlyRichError) bool

func IsInvalidContactTypeError

func IsInvalidContactTypeError(err errors.ReadOnlyRichError) bool

func IsInvalidScopeCreationError

func IsInvalidScopeCreationError(err errors.ReadOnlyRichError) bool

func IsInvalidTokenError

func IsInvalidTokenError(err errors.ReadOnlyRichError) bool

func IsInvalidTypeError

func IsInvalidTypeError(err errors.ReadOnlyRichError) bool

func IsInvalidValueError

func IsInvalidValueError(err errors.ReadOnlyRichError) bool

func IsLoginContactNotPrimaryError

func IsLoginContactNotPrimaryError(err errors.ReadOnlyRichError) bool

func IsLoginFailedWrongPasswordError

func IsLoginFailedWrongPasswordError(err errors.ReadOnlyRichError) bool

func IsLoginPrimaryContactNotConfirmedError

func IsLoginPrimaryContactNotConfirmedError(err errors.ReadOnlyRichError) bool

func IsMalfomedTokenError

func IsMalfomedTokenError(err errors.ReadOnlyRichError) bool

func IsMultipleConfirmedInstancesOfContactError

func IsMultipleConfirmedInstancesOfContactError(err errors.ReadOnlyRichError) bool

func IsNilNotAllowedError

func IsNilNotAllowedError(err errors.ReadOnlyRichError) bool

func IsNilParameterNotAllowedError

func IsNilParameterNotAllowedError(err errors.ReadOnlyRichError) bool

func IsNoAppFoundError

func IsNoAppFoundError(err errors.ReadOnlyRichError) bool

func IsNoContactFoundError

func IsNoContactFoundError(err errors.ReadOnlyRichError) bool

func IsNoNewPasswordHashProvidedError

func IsNoNewPasswordHashProvidedError(err errors.ReadOnlyRichError) bool

func IsNoScopeFoundError

func IsNoScopeFoundError(err errors.ReadOnlyRichError) bool

func IsNoUserFoundError

func IsNoUserFoundError(err errors.ReadOnlyRichError) bool

func IsNotImplementedError

func IsNotImplementedError(err errors.ReadOnlyRichError) bool

func IsPasswordResetContactNotPrimaryError

func IsPasswordResetContactNotPrimaryError(err errors.ReadOnlyRichError) bool

func IsRegistrationContactAlreadyConfirmedError

func IsRegistrationContactAlreadyConfirmedError(err errors.ReadOnlyRichError) bool

func IsRepoQueryFailedError

func IsRepoQueryFailedError(err errors.ReadOnlyRichError) bool

func IsRepoQueryFailedWithMetaDataError

func IsRepoQueryFailedWithMetaDataError(err errors.ReadOnlyRichError) bool

func IsTemplateRenderErrorError

func IsTemplateRenderErrorError(err errors.ReadOnlyRichError) bool

func IsUserIDsDoNotMatchError

func IsUserIDsDoNotMatchError(err errors.ReadOnlyRichError) bool

func IsUserLockedOutError

func IsUserLockedOutError(err errors.ReadOnlyRichError) bool

func IsWrongTokenTypeError

func IsWrongTokenTypeError(err errors.ReadOnlyRichError) bool

func IsWrongTypeError

func IsWrongTypeError(err errors.ReadOnlyRichError) bool

func NewBcryptPasswordHashErrorError

func NewBcryptPasswordHashErrorError(assetId string, error error, includeStack bool) errors.RichError

NewBcryptPasswordHashErrorError creates a new specific error

func NewComponentNotImplementedError

func NewComponentNotImplementedError(componentType string, missingType string, includeStack bool) errors.RichError

NewComponentNotImplementedError creates a new specific error

func NewComputeHashFailedError

func NewComputeHashFailedError(algorithm string, error error, includeStack bool) errors.RichError

NewComputeHashFailedError creates a new specific error

func NewContactAlreadyConfirmedError

func NewContactAlreadyConfirmedError(userId string, contactId string, principal string, principalType string, fields map[string]interface{}, includeStack bool) errors.RichError

NewContactAlreadyConfirmedError creates a new specific error

func NewContactAlreadyMarkedPrimaryError

func NewContactAlreadyMarkedPrimaryError(principal string, principalType string, includeStack bool) errors.RichError

NewContactAlreadyMarkedPrimaryError creates a new specific error

func NewContactNotConfirmedError

func NewContactNotConfirmedError(contactId string, principal string, principalType string, fields map[string]interface{}, includeStack bool) errors.RichError

NewContactNotConfirmedError creates a new specific error

func NewContactToAddAlreadyConfirmedError

func NewContactToAddAlreadyConfirmedError(userId string, principal string, principalType string, fields map[string]interface{}, includeStack bool) errors.RichError

NewContactToAddAlreadyConfirmedError creates a new specific error

func NewContactToAddMarkedAsPrimaryError

func NewContactToAddMarkedAsPrimaryError(userId string, principal string, principalType string, includeStack bool) errors.RichError

NewContactToAddMarkedAsPrimaryError creates a new specific error

func NewDatastoreTransactionAbortFailedError

func NewDatastoreTransactionAbortFailedError(cause error, transactionAbortError error, includeStack bool) errors.RichError

NewDatastoreTransactionAbortFailedError creates a new specific error

func NewDatastoreTransactionFailedError

func NewDatastoreTransactionFailedError(cause error, includeStack bool) errors.RichError

NewDatastoreTransactionFailedError creates a new specific error

func NewExpiredTokenError

func NewExpiredTokenError(id string, tokenType string, expiredOn time.Time, includeStack bool) errors.RichError

NewExpiredTokenError creates a new specific error

func NewFailedToParseObjectIDError

func NewFailedToParseObjectIDError(oid string, error error, includeStack bool) errors.RichError

NewFailedToParseObjectIDError creates a new specific error

func NewGenerateUUIDFailedError

func NewGenerateUUIDFailedError(generationError error, includeStack bool) errors.RichError

NewGenerateUUIDFailedError creates a new specific error

func NewInvalidAppCreationError

func NewInvalidAppCreationError(fields map[string]interface{}, includeStack bool) errors.RichError

NewInvalidAppCreationError creates a new specific error

func NewInvalidContactTypeError

func NewInvalidContactTypeError(principal string, principalType string, includeStack bool) errors.RichError

NewInvalidContactTypeError creates a new specific error

func NewInvalidScopeCreationError

func NewInvalidScopeCreationError(fields map[string]interface{}, includeStack bool) errors.RichError

NewInvalidScopeCreationError creates a new specific error

func NewInvalidTokenError

func NewInvalidTokenError(id string, includeStack bool) errors.RichError

NewInvalidTokenError creates a new specific error

func NewInvalidTypeError

func NewInvalidTypeError(typeEncountered string, includeStack bool) errors.RichError

NewInvalidTypeError creates a new specific error

func NewInvalidValueError

func NewInvalidValueError(value interface{}, includeStack bool) errors.RichError

NewInvalidValueError creates a new specific error

func NewLoginContactNotPrimaryError

func NewLoginContactNotPrimaryError(contactId string, principal string, principalType string, includeStack bool) errors.RichError

NewLoginContactNotPrimaryError creates a new specific error

func NewLoginFailedWrongPasswordError

func NewLoginFailedWrongPasswordError(userID string, includeStack bool) errors.RichError

NewLoginFailedWrongPasswordError creates a new specific error

func NewLoginPrimaryContactNotConfirmedError

func NewLoginPrimaryContactNotConfirmedError(contactId string, principal string, principalType string, includeStack bool) errors.RichError

NewLoginPrimaryContactNotConfirmedError creates a new specific error

func NewMalfomedTokenError

func NewMalfomedTokenError(fields map[string]interface{}, includeStack bool) errors.RichError

NewMalfomedTokenError creates a new specific error

func NewMultipleConfirmedInstancesOfContactError

func NewMultipleConfirmedInstancesOfContactError(principal string, principalType string, numOccurances int64, includeStack bool) errors.RichError

NewMultipleConfirmedInstancesOfContactError creates a new specific error

func NewNilNotAllowedError

func NewNilNotAllowedError(includeStack bool) errors.RichError

NewNilNotAllowedError creates a new specific error

func NewNilParameterNotAllowedError

func NewNilParameterNotAllowedError(functionName string, parameterName string, includeStack bool) errors.RichError

NewNilParameterNotAllowedError creates a new specific error

func NewNoAppFoundError

func NewNoAppFoundError(fields map[string]interface{}, includeStack bool) errors.RichError

NewNoAppFoundError creates a new specific error

func NewNoContactFoundError

func NewNoContactFoundError(fields map[string]interface{}, includeStack bool) errors.RichError

NewNoContactFoundError creates a new specific error

func NewNoNewPasswordHashProvidedError

func NewNoNewPasswordHashProvidedError(includeStack bool) errors.RichError

NewNoNewPasswordHashProvidedError creates a new specific error

func NewNoScopeFoundError

func NewNoScopeFoundError(fields map[string]interface{}, includeStack bool) errors.RichError

NewNoScopeFoundError creates a new specific error

func NewNoUserFoundError

func NewNoUserFoundError(fields map[string]interface{}, includeStack bool) errors.RichError

NewNoUserFoundError creates a new specific error

func NewNotImplementedError

func NewNotImplementedError(includeStack bool) errors.RichError

NewNotImplementedError creates a new specific error

func NewPasswordResetContactNotPrimaryError

func NewPasswordResetContactNotPrimaryError(contactId string, principal string, principalType string, includeStack bool) errors.RichError

NewPasswordResetContactNotPrimaryError creates a new specific error

func NewRegistrationContactAlreadyConfirmedError

func NewRegistrationContactAlreadyConfirmedError(principal string, principalType string, fields map[string]interface{}, includeStack bool) errors.RichError

NewRegistrationContactAlreadyConfirmedError creates a new specific error

func NewRepoQueryFailedError

func NewRepoQueryFailedError(queryError error, includeStack bool) errors.RichError

NewRepoQueryFailedError creates a new specific error

func NewRepoQueryFailedWithMetaDataError

func NewRepoQueryFailedWithMetaDataError(queryError error, fields map[string]interface{}, includeStack bool) errors.RichError

NewRepoQueryFailedWithMetaDataError creates a new specific error

func NewTemplateRenderErrorError

func NewTemplateRenderErrorError(template string, renderError error, includeStack bool) errors.RichError

NewTemplateRenderErrorError creates a new specific error

func NewUserIDsDoNotMatchError

func NewUserIDsDoNotMatchError(userID1 string, userID2 string, includeStack bool) errors.RichError

NewUserIDsDoNotMatchError creates a new specific error

func NewUserLockedOutError

func NewUserLockedOutError(userID string, includeStack bool) errors.RichError

NewUserLockedOutError creates a new specific error

func NewWrongTokenTypeError

func NewWrongTokenTypeError(id string, tokenType string, expectedTokenType string, includeStack bool) errors.RichError

NewWrongTokenTypeError creates a new specific error

func NewWrongTypeError

func NewWrongTypeError(actual string, expected string, includeStack bool) errors.RichError

NewWrongTypeError creates a new specific error

Types

This section is empty.

Jump to

Keyboard shortcuts

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