errors

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorAccountIsBanned

type ErrorAccountIsBanned struct {
	PublicKey string
}

ErrorAccountIsBanned is returned during registration when a username already exists

func (*ErrorAccountIsBanned) Data

func (e *ErrorAccountIsBanned) Data() string

Data returns data of the error

func (*ErrorAccountIsBanned) Error

func (e *ErrorAccountIsBanned) Error() string

Error returns the error string

func (*ErrorAccountIsBanned) ErrorType

func (e *ErrorAccountIsBanned) ErrorType() string

ErrorType returns error type as string

func (*ErrorAccountIsBanned) HTTPCode

func (e *ErrorAccountIsBanned) HTTPCode() int

HTTPCode returns http status code

func (*ErrorAccountIsBanned) JSONError

func (e *ErrorAccountIsBanned) JSONError() gin.H

JSONError returns json of the error

func (*ErrorAccountIsBanned) Message

func (e *ErrorAccountIsBanned) Message() string

Message returns tring message of error

type ErrorAssetNotClaimable

type ErrorAssetNotClaimable struct {
}

ErrorAssetNotClaimable for unclaimable assets

func (*ErrorAssetNotClaimable) Data

func (e *ErrorAssetNotClaimable) Data() string

Data returns data of the error

func (*ErrorAssetNotClaimable) Error

func (e *ErrorAssetNotClaimable) Error() string

Error returns the error string

func (*ErrorAssetNotClaimable) ErrorType

func (e *ErrorAssetNotClaimable) ErrorType() string

ErrorType returns error type as string

func (*ErrorAssetNotClaimable) HTTPCode

func (e *ErrorAssetNotClaimable) HTTPCode() int

HTTPCode returns http status code

func (*ErrorAssetNotClaimable) JSONError

func (e *ErrorAssetNotClaimable) JSONError() gin.H

JSONError returns json of the error

func (*ErrorAssetNotClaimable) Message

func (e *ErrorAssetNotClaimable) Message() string

Message returns tring message of error

type ErrorBantuTalkUsernameAlreadyExists

type ErrorBantuTalkUsernameAlreadyExists struct {
	Detail string
}

ErrorBantuTalkUsernameAlreadyExists is returned during registration when a username already exists

func (*ErrorBantuTalkUsernameAlreadyExists) Data

Data returns data of the error

func (*ErrorBantuTalkUsernameAlreadyExists) Error

Error returns the error string

func (*ErrorBantuTalkUsernameAlreadyExists) ErrorType

ErrorType returns error type as string

func (*ErrorBantuTalkUsernameAlreadyExists) HTTPCode

HTTPCode returns http status code

func (*ErrorBantuTalkUsernameAlreadyExists) JSONError

func (e *ErrorBantuTalkUsernameAlreadyExists) JSONError() gin.H

JSONError returns json of the error

func (*ErrorBantuTalkUsernameAlreadyExists) Message

Message returns tring message of error

type ErrorBlockchainAccountNotActivated

type ErrorBlockchainAccountNotActivated struct {
	PublicKey string
}

ErrorBlockchainAccountNotActivated is when user does not exist

func (*ErrorBlockchainAccountNotActivated) Data

Data returns data of the error

func (*ErrorBlockchainAccountNotActivated) Error

Error returns the error string

func (*ErrorBlockchainAccountNotActivated) ErrorType

ErrorType returns error type as string

func (*ErrorBlockchainAccountNotActivated) HTTPCode

HTTPCode returns http status code

func (*ErrorBlockchainAccountNotActivated) JSONError

func (e *ErrorBlockchainAccountNotActivated) JSONError() gin.H

JSONError returns json of the error

func (*ErrorBlockchainAccountNotActivated) Message

Message returns tring message of error

type ErrorEmailAlreadyExists

type ErrorEmailAlreadyExists struct {
	Detail string
}

ErrorEmailAlreadyExists is returned during registration when an email is already in use

func (*ErrorEmailAlreadyExists) Data

func (e *ErrorEmailAlreadyExists) Data() string

Data returns data of the error

func (*ErrorEmailAlreadyExists) Error

func (e *ErrorEmailAlreadyExists) Error() string

Error returns the error string

func (*ErrorEmailAlreadyExists) ErrorType

func (e *ErrorEmailAlreadyExists) ErrorType() string

ErrorType returns error type as string

func (*ErrorEmailAlreadyExists) HTTPCode

func (e *ErrorEmailAlreadyExists) HTTPCode() int

HTTPCode returns http status code

func (*ErrorEmailAlreadyExists) JSONError

func (e *ErrorEmailAlreadyExists) JSONError() gin.H

JSONError returns json of the error

func (*ErrorEmailAlreadyExists) Message

func (e *ErrorEmailAlreadyExists) Message() string

Message returns tring message of error

type ErrorEmailFailedValidation

type ErrorEmailFailedValidation struct {
	Email  string
	Detail string
}

ErrorEmailFailedValidation for invalid email formats

func (*ErrorEmailFailedValidation) Data

Data returns data of the error

func (*ErrorEmailFailedValidation) Error

Error returns the error string

func (*ErrorEmailFailedValidation) ErrorType

func (e *ErrorEmailFailedValidation) ErrorType() string

ErrorType returns error type as string

func (*ErrorEmailFailedValidation) HTTPCode

func (e *ErrorEmailFailedValidation) HTTPCode() int

HTTPCode returns http status code

func (*ErrorEmailFailedValidation) JSONError

func (e *ErrorEmailFailedValidation) JSONError() gin.H

JSONError returns json of the error

func (*ErrorEmailFailedValidation) Message

func (e *ErrorEmailFailedValidation) Message() string

Message returns tring message of error

type ErrorInstagramHandleAlreadyExists

type ErrorInstagramHandleAlreadyExists struct {
	Detail string
}

ErrorInstagramHandleAlreadyExists is returned during registration when a username already exists

func (*ErrorInstagramHandleAlreadyExists) Data

Data returns data of the error

func (*ErrorInstagramHandleAlreadyExists) Error

Error returns the error string

func (*ErrorInstagramHandleAlreadyExists) ErrorType

ErrorType returns error type as string

func (*ErrorInstagramHandleAlreadyExists) HTTPCode

func (e *ErrorInstagramHandleAlreadyExists) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInstagramHandleAlreadyExists) JSONError

func (e *ErrorInstagramHandleAlreadyExists) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInstagramHandleAlreadyExists) Message

Message returns tring message of error

type ErrorInvalidAssetCode

type ErrorInvalidAssetCode struct {
}

ErrorInvalidAssetCode for invalid asset codes

func (*ErrorInvalidAssetCode) Data

func (e *ErrorInvalidAssetCode) Data() string

Data returns data of the error

func (*ErrorInvalidAssetCode) Error

func (e *ErrorInvalidAssetCode) Error() string

Error returns the error string

func (*ErrorInvalidAssetCode) ErrorType

func (e *ErrorInvalidAssetCode) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidAssetCode) HTTPCode

func (e *ErrorInvalidAssetCode) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidAssetCode) JSONError

func (e *ErrorInvalidAssetCode) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidAssetCode) Message

func (e *ErrorInvalidAssetCode) Message() string

Message sets the message on the error

type ErrorInvalidAuthenticationPublicKey

type ErrorInvalidAuthenticationPublicKey struct {
	PublicKey string
}

ErrorInvalidAuthenticationPublicKey is struct for returning error

func (*ErrorInvalidAuthenticationPublicKey) Data

Data returns data of the error

func (*ErrorInvalidAuthenticationPublicKey) Error

Error returns the error string

func (*ErrorInvalidAuthenticationPublicKey) ErrorType

ErrorType returns error type as string

func (*ErrorInvalidAuthenticationPublicKey) HTTPCode

HTTPCode returns http status code

func (*ErrorInvalidAuthenticationPublicKey) JSONError

func (e *ErrorInvalidAuthenticationPublicKey) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidAuthenticationPublicKey) Message

Message returns tring message of error

type ErrorInvalidAuthenticationSignature

type ErrorInvalidAuthenticationSignature struct {
}

ErrorInvalidAuthenticationSignature holds error struct

func (*ErrorInvalidAuthenticationSignature) Data

Data returns data of the error

func (*ErrorInvalidAuthenticationSignature) Error

Error returns the error string

func (*ErrorInvalidAuthenticationSignature) ErrorType

ErrorType returns error type as string

func (*ErrorInvalidAuthenticationSignature) HTTPCode

HTTPCode returns http status code

func (*ErrorInvalidAuthenticationSignature) JSONError

func (e *ErrorInvalidAuthenticationSignature) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidAuthenticationSignature) Message

Message returns tring message of error

type ErrorInvalidAuthorization

type ErrorInvalidAuthorization struct {
}

ErrorInvalidAuthorization holds error struct

func (*ErrorInvalidAuthorization) Data

Data returns data of the error

func (*ErrorInvalidAuthorization) Error

func (e *ErrorInvalidAuthorization) Error() string

Error returns the error string

func (*ErrorInvalidAuthorization) ErrorType

func (e *ErrorInvalidAuthorization) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidAuthorization) HTTPCode

func (e *ErrorInvalidAuthorization) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidAuthorization) JSONError

func (e *ErrorInvalidAuthorization) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidAuthorization) Message

func (e *ErrorInvalidAuthorization) Message() string

Message returns tring message of error

type ErrorInvalidEmailFormat

type ErrorInvalidEmailFormat struct {
	Email  string
	Detail string
}

ErrorInvalidEmailFormat for invalid email formats

func (*ErrorInvalidEmailFormat) Data

func (e *ErrorInvalidEmailFormat) Data() string

Data returns data of the error

func (*ErrorInvalidEmailFormat) Error

func (e *ErrorInvalidEmailFormat) Error() string

Error returns the error string

func (*ErrorInvalidEmailFormat) ErrorType

func (e *ErrorInvalidEmailFormat) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidEmailFormat) HTTPCode

func (e *ErrorInvalidEmailFormat) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidEmailFormat) JSONError

func (e *ErrorInvalidEmailFormat) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidEmailFormat) Message

func (e *ErrorInvalidEmailFormat) Message() string

Message returns tring message of error

type ErrorInvalidGender

type ErrorInvalidGender struct {
}

ErrorInvalidGender error

func (*ErrorInvalidGender) Data

func (e *ErrorInvalidGender) Data() string

Data returns data of the error

func (*ErrorInvalidGender) Error

func (e *ErrorInvalidGender) Error() string

Error returns the error string

func (*ErrorInvalidGender) ErrorType

func (e *ErrorInvalidGender) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidGender) HTTPCode

func (e *ErrorInvalidGender) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidGender) JSONError

func (e *ErrorInvalidGender) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidGender) Message

func (e *ErrorInvalidGender) Message() string

Message returns tring message of error

type ErrorInvalidImageThumbnail

type ErrorInvalidImageThumbnail struct {
}

ErrorInvalidImageThumbnail error

func (*ErrorInvalidImageThumbnail) Data

Data returns data of the error

func (*ErrorInvalidImageThumbnail) Error

Error returns the error string

func (*ErrorInvalidImageThumbnail) ErrorType

func (e *ErrorInvalidImageThumbnail) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidImageThumbnail) HTTPCode

func (e *ErrorInvalidImageThumbnail) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidImageThumbnail) JSONError

func (e *ErrorInvalidImageThumbnail) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidImageThumbnail) Message

func (e *ErrorInvalidImageThumbnail) Message() string

Message returns tring message of error

type ErrorInvalidImageThumbnailSize

type ErrorInvalidImageThumbnailSize struct {
}

ErrorInvalidImageThumbnailSize error

func (*ErrorInvalidImageThumbnailSize) Data

Data returns data of the error

func (*ErrorInvalidImageThumbnailSize) Error

Error returns the error string

func (*ErrorInvalidImageThumbnailSize) ErrorType

func (e *ErrorInvalidImageThumbnailSize) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidImageThumbnailSize) HTTPCode

func (e *ErrorInvalidImageThumbnailSize) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidImageThumbnailSize) JSONError

func (e *ErrorInvalidImageThumbnailSize) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidImageThumbnailSize) Message

Message returns tring message of error

type ErrorInvalidInstagramHandleFormat

type ErrorInvalidInstagramHandleFormat struct {
	Handle string
	Detail string
}

ErrorInvalidInstagramHandleFormat is returned when there is an error in the username

func (*ErrorInvalidInstagramHandleFormat) Data

Data returns data of the error

func (*ErrorInvalidInstagramHandleFormat) Error

Error returns the error string

func (*ErrorInvalidInstagramHandleFormat) ErrorType

ErrorType returns error type as string

func (*ErrorInvalidInstagramHandleFormat) HTTPCode

func (e *ErrorInvalidInstagramHandleFormat) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidInstagramHandleFormat) JSONError

func (e *ErrorInvalidInstagramHandleFormat) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidInstagramHandleFormat) Message

Message returns tring message of error

type ErrorInvalidJSON

type ErrorInvalidJSON struct {
}

ErrorInvalidJSON is error struct

func (*ErrorInvalidJSON) Data

func (e *ErrorInvalidJSON) Data() string

Data returns data of the error

func (*ErrorInvalidJSON) Error

func (e *ErrorInvalidJSON) Error() string

Error returns the error string

func (*ErrorInvalidJSON) ErrorType

func (e *ErrorInvalidJSON) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidJSON) HTTPCode

func (e *ErrorInvalidJSON) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidJSON) JSONError

func (e *ErrorInvalidJSON) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidJSON) Message

func (e *ErrorInvalidJSON) Message() string

Message returns tring message of error

type ErrorInvalidLinkedinFormat

type ErrorInvalidLinkedinFormat struct {
	Handle string
	Detail string
}

ErrorInvalidLinkedinFormat is returned when there is an error in the username

func (*ErrorInvalidLinkedinFormat) Data

Data returns data of the error

func (*ErrorInvalidLinkedinFormat) Error

Error returns the error string

func (*ErrorInvalidLinkedinFormat) ErrorType

func (e *ErrorInvalidLinkedinFormat) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidLinkedinFormat) HTTPCode

func (e *ErrorInvalidLinkedinFormat) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidLinkedinFormat) JSONError

func (e *ErrorInvalidLinkedinFormat) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidLinkedinFormat) Message

func (e *ErrorInvalidLinkedinFormat) Message() string

Message returns tring message of error

type ErrorInvalidName

type ErrorInvalidName struct {
	Field string
}

ErrorInvalidName invalid name error

func (*ErrorInvalidName) Data

func (e *ErrorInvalidName) Data() string

Data returns data of the error

func (*ErrorInvalidName) Error

func (e *ErrorInvalidName) Error() string

Error returns the error string

func (*ErrorInvalidName) ErrorType

func (e *ErrorInvalidName) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidName) HTTPCode

func (e *ErrorInvalidName) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidName) JSONError

func (e *ErrorInvalidName) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidName) Message

func (e *ErrorInvalidName) Message() string

Message returns tring message of error

type ErrorInvalidPhoneNumber

type ErrorInvalidPhoneNumber struct {
}

ErrorInvalidPhoneNumber error

func (*ErrorInvalidPhoneNumber) Data

func (e *ErrorInvalidPhoneNumber) Data() string

Data returns data of the error

func (*ErrorInvalidPhoneNumber) Error

func (e *ErrorInvalidPhoneNumber) Error() string

Error returns the error string

func (*ErrorInvalidPhoneNumber) ErrorType

func (e *ErrorInvalidPhoneNumber) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidPhoneNumber) HTTPCode

func (e *ErrorInvalidPhoneNumber) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidPhoneNumber) JSONError

func (e *ErrorInvalidPhoneNumber) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidPhoneNumber) Message

func (e *ErrorInvalidPhoneNumber) Message() string

Message returns tring message of error

type ErrorInvalidPublicKey

type ErrorInvalidPublicKey struct {
	PublicKey string
}

ErrorInvalidPublicKey is error struct

func (*ErrorInvalidPublicKey) Data

func (e *ErrorInvalidPublicKey) Data() string

Data returns data of the error

func (*ErrorInvalidPublicKey) Error

func (e *ErrorInvalidPublicKey) Error() string

Error returns the error string

func (*ErrorInvalidPublicKey) ErrorType

func (e *ErrorInvalidPublicKey) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidPublicKey) HTTPCode

func (e *ErrorInvalidPublicKey) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidPublicKey) JSONError

func (e *ErrorInvalidPublicKey) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidPublicKey) Message

func (e *ErrorInvalidPublicKey) Message() string

Message returns tring message of error

type ErrorInvalidReferrer

type ErrorInvalidReferrer struct {
}

ErrorInvalidReferrer error

func (*ErrorInvalidReferrer) Data

func (e *ErrorInvalidReferrer) Data() string

Data returns data of the error

func (*ErrorInvalidReferrer) Error

func (e *ErrorInvalidReferrer) Error() string

Error returns the error string

func (*ErrorInvalidReferrer) ErrorType

func (e *ErrorInvalidReferrer) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidReferrer) HTTPCode

func (e *ErrorInvalidReferrer) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidReferrer) JSONError

func (e *ErrorInvalidReferrer) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidReferrer) Message

func (e *ErrorInvalidReferrer) Message() string

Message returns tring message of error

type ErrorInvalidTelegramHandleFormat

type ErrorInvalidTelegramHandleFormat struct {
	Handle string
	Detail string
}

ErrorInvalidTelegramHandleFormat is returned when there is an error in the username

func (*ErrorInvalidTelegramHandleFormat) Data

Data returns data of the error

func (*ErrorInvalidTelegramHandleFormat) Error

Error returns the error string

func (*ErrorInvalidTelegramHandleFormat) ErrorType

ErrorType returns error type as string

func (*ErrorInvalidTelegramHandleFormat) HTTPCode

func (e *ErrorInvalidTelegramHandleFormat) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidTelegramHandleFormat) JSONError

func (e *ErrorInvalidTelegramHandleFormat) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidTelegramHandleFormat) Message

Message returns tring message of error

type ErrorInvalidTransaction

type ErrorInvalidTransaction struct {
}

ErrorInvalidTransaction error

func (*ErrorInvalidTransaction) Data

func (e *ErrorInvalidTransaction) Data() string

Data returns data of the error

func (*ErrorInvalidTransaction) Error

func (e *ErrorInvalidTransaction) Error() string

Error returns the error string

func (*ErrorInvalidTransaction) ErrorType

func (e *ErrorInvalidTransaction) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidTransaction) HTTPCode

func (e *ErrorInvalidTransaction) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidTransaction) JSONError

func (e *ErrorInvalidTransaction) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidTransaction) Message

func (e *ErrorInvalidTransaction) Message() string

Message returns tring message of error

type ErrorInvalidTwitterHandleFormat

type ErrorInvalidTwitterHandleFormat struct {
	Handle string
	Detail string
}

ErrorInvalidTwitterHandleFormat is returned when there is an error in the username

func (*ErrorInvalidTwitterHandleFormat) Data

Data returns data of the error

func (*ErrorInvalidTwitterHandleFormat) Error

Error returns the error string

func (*ErrorInvalidTwitterHandleFormat) ErrorType

func (e *ErrorInvalidTwitterHandleFormat) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidTwitterHandleFormat) HTTPCode

func (e *ErrorInvalidTwitterHandleFormat) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidTwitterHandleFormat) JSONError

func (e *ErrorInvalidTwitterHandleFormat) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidTwitterHandleFormat) Message

Message returns tring message of error

type ErrorInvalidUsernameFormat

type ErrorInvalidUsernameFormat struct {
	Username string
	Detail   string
}

ErrorInvalidUsernameFormat is returned when there is an error in the username

func (*ErrorInvalidUsernameFormat) Data

Data returns data of the error

func (*ErrorInvalidUsernameFormat) Error

Error returns the error string

func (*ErrorInvalidUsernameFormat) ErrorType

func (e *ErrorInvalidUsernameFormat) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidUsernameFormat) HTTPCode

func (e *ErrorInvalidUsernameFormat) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidUsernameFormat) JSONError

func (e *ErrorInvalidUsernameFormat) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidUsernameFormat) Message

func (e *ErrorInvalidUsernameFormat) Message() string

Message returns tring message of error

type ErrorInvalidVerificationCode

type ErrorInvalidVerificationCode struct {
}

ErrorInvalidVerificationCode for invalid email formats

func (*ErrorInvalidVerificationCode) Data

Data returns data of the error

func (*ErrorInvalidVerificationCode) Error

Error returns the error string

func (*ErrorInvalidVerificationCode) ErrorType

func (e *ErrorInvalidVerificationCode) ErrorType() string

ErrorType returns error type as string

func (*ErrorInvalidVerificationCode) HTTPCode

func (e *ErrorInvalidVerificationCode) HTTPCode() int

HTTPCode returns http status code

func (*ErrorInvalidVerificationCode) JSONError

func (e *ErrorInvalidVerificationCode) JSONError() gin.H

JSONError returns json of the error

func (*ErrorInvalidVerificationCode) Message

func (e *ErrorInvalidVerificationCode) Message() string

Message returns tring message of error

type ErrorMissingEnvironmentVariable

type ErrorMissingEnvironmentVariable struct {
	EnvironmentVariable string
}

ErrorMissingEnvironmentVariable is returned when an environment variable has not yet been set

func (*ErrorMissingEnvironmentVariable) Data

Data returns data of the error

func (*ErrorMissingEnvironmentVariable) Error

Error returns the error string

func (*ErrorMissingEnvironmentVariable) ErrorType

func (e *ErrorMissingEnvironmentVariable) ErrorType() string

ErrorType returns error type as string

func (*ErrorMissingEnvironmentVariable) HTTPCode

func (e *ErrorMissingEnvironmentVariable) HTTPCode() int

HTTPCode returns http status code

func (*ErrorMissingEnvironmentVariable) JSONError

func (e *ErrorMissingEnvironmentVariable) JSONError() gin.H

JSONError returns json of the error

func (*ErrorMissingEnvironmentVariable) Message

Message returns tring message of error

type ErrorMissingParameter

type ErrorMissingParameter struct {
	Parameter string
}

ErrorMissingParameter error struct

func (*ErrorMissingParameter) Data

func (e *ErrorMissingParameter) Data() string

Data returns data of the error

func (*ErrorMissingParameter) Error

func (e *ErrorMissingParameter) Error() string

Error returns the error string

func (*ErrorMissingParameter) ErrorType

func (e *ErrorMissingParameter) ErrorType() string

ErrorType returns error type as string

func (*ErrorMissingParameter) HTTPCode

func (e *ErrorMissingParameter) HTTPCode() int

HTTPCode returns http status code

func (*ErrorMissingParameter) JSONError

func (e *ErrorMissingParameter) JSONError() gin.H

JSONError returns json of the error

func (*ErrorMissingParameter) Message

func (e *ErrorMissingParameter) Message() string

Message returns tring message of error

type ErrorMobileNumberAlreadyExists

type ErrorMobileNumberAlreadyExists struct {
	Detail string
}

ErrorMobileNumberAlreadyExists is returned during registration when a username already exists

func (*ErrorMobileNumberAlreadyExists) Data

Data returns data of the error

func (*ErrorMobileNumberAlreadyExists) Error

Error returns the error string

func (*ErrorMobileNumberAlreadyExists) ErrorType

func (e *ErrorMobileNumberAlreadyExists) ErrorType() string

ErrorType returns error type as string

func (*ErrorMobileNumberAlreadyExists) HTTPCode

func (e *ErrorMobileNumberAlreadyExists) HTTPCode() int

HTTPCode returns http status code

func (*ErrorMobileNumberAlreadyExists) JSONError

func (e *ErrorMobileNumberAlreadyExists) JSONError() gin.H

JSONError returns json of the error

func (*ErrorMobileNumberAlreadyExists) Message

Message returns tring message of error

type ErrorNameFailedValidation

type ErrorNameFailedValidation struct {
	Detail string
}

ErrorNameFailedValidation for invalid email formats

func (*ErrorNameFailedValidation) Data

Data returns data of the error

func (*ErrorNameFailedValidation) Error

func (e *ErrorNameFailedValidation) Error() string

Error returns the error string

func (*ErrorNameFailedValidation) ErrorType

func (e *ErrorNameFailedValidation) ErrorType() string

ErrorType returns error type as string

func (*ErrorNameFailedValidation) HTTPCode

func (e *ErrorNameFailedValidation) HTTPCode() int

HTTPCode returns http status code

func (*ErrorNameFailedValidation) JSONError

func (e *ErrorNameFailedValidation) JSONError() gin.H

JSONError returns json of the error

func (*ErrorNameFailedValidation) Message

func (e *ErrorNameFailedValidation) Message() string

Message returns tring message of error

type ErrorPhoneNumberValidationFailed

type ErrorPhoneNumberValidationFailed struct {
	Detail string
}

ErrorPhoneNumberValidationFailed error

func (*ErrorPhoneNumberValidationFailed) Data

Data returns data of the error

func (*ErrorPhoneNumberValidationFailed) Error

Error returns the error string

func (*ErrorPhoneNumberValidationFailed) ErrorType

ErrorType returns error type as string

func (*ErrorPhoneNumberValidationFailed) HTTPCode

func (e *ErrorPhoneNumberValidationFailed) HTTPCode() int

HTTPCode returns http status code

func (*ErrorPhoneNumberValidationFailed) JSONError

func (e *ErrorPhoneNumberValidationFailed) JSONError() gin.H

JSONError returns json of the error

func (*ErrorPhoneNumberValidationFailed) Message

Message returns tring message of error

type ErrorTelegramHandleAlreadyExists

type ErrorTelegramHandleAlreadyExists struct {
	Detail string
}

ErrorTelegramHandleAlreadyExists is returned during registration when a username already exists

func (*ErrorTelegramHandleAlreadyExists) Data

Data returns data of the error

func (*ErrorTelegramHandleAlreadyExists) Error

Error returns the error string

func (*ErrorTelegramHandleAlreadyExists) ErrorType

ErrorType returns error type as string

func (*ErrorTelegramHandleAlreadyExists) HTTPCode

func (e *ErrorTelegramHandleAlreadyExists) HTTPCode() int

HTTPCode returns http status code

func (*ErrorTelegramHandleAlreadyExists) JSONError

func (e *ErrorTelegramHandleAlreadyExists) JSONError() gin.H

JSONError returns json of the error

func (*ErrorTelegramHandleAlreadyExists) Message

Message returns tring message of error

type ErrorTemporaryServerError

type ErrorTemporaryServerError struct {
}

ErrorTemporaryServerError temporary server error

func (*ErrorTemporaryServerError) Data

Data returns data of the error

func (*ErrorTemporaryServerError) Error

func (e *ErrorTemporaryServerError) Error() string

Error returns the error string

func (*ErrorTemporaryServerError) ErrorType

func (e *ErrorTemporaryServerError) ErrorType() string

ErrorType returns error type as string

func (*ErrorTemporaryServerError) HTTPCode

func (e *ErrorTemporaryServerError) HTTPCode() int

HTTPCode returns http status code

func (*ErrorTemporaryServerError) JSONError

func (e *ErrorTemporaryServerError) JSONError() gin.H

JSONError returns json of the error

func (*ErrorTemporaryServerError) Message

func (e *ErrorTemporaryServerError) Message() string

Message returns tring message of error

type ErrorTwitterHandleAlreadyExists

type ErrorTwitterHandleAlreadyExists struct {
	Detail string
}

ErrorTwitterHandleAlreadyExists is returned during registration when a username already exists

func (*ErrorTwitterHandleAlreadyExists) Data

Data returns data of the error

func (*ErrorTwitterHandleAlreadyExists) Error

Error returns the error string

func (*ErrorTwitterHandleAlreadyExists) ErrorType

func (e *ErrorTwitterHandleAlreadyExists) ErrorType() string

ErrorType returns error type as string

func (*ErrorTwitterHandleAlreadyExists) HTTPCode

func (e *ErrorTwitterHandleAlreadyExists) HTTPCode() int

HTTPCode returns http status code

func (*ErrorTwitterHandleAlreadyExists) JSONError

func (e *ErrorTwitterHandleAlreadyExists) JSONError() gin.H

JSONError returns json of the error

func (*ErrorTwitterHandleAlreadyExists) Message

Message returns tring message of error

type ErrorUnderfundedAccount

type ErrorUnderfundedAccount struct {
	Detail string
}

ErrorUnderfundedAccount gets returned when an account doesn't have the necessary funds to perform a transaction

func (*ErrorUnderfundedAccount) Data

func (e *ErrorUnderfundedAccount) Data() string

Data returns data of the error

func (*ErrorUnderfundedAccount) Error

func (e *ErrorUnderfundedAccount) Error() string

Error returns the error string

func (*ErrorUnderfundedAccount) ErrorType

func (e *ErrorUnderfundedAccount) ErrorType() string

ErrorType returns error type as string

func (*ErrorUnderfundedAccount) HTTPCode

func (e *ErrorUnderfundedAccount) HTTPCode() int

HTTPCode returns http status code

func (*ErrorUnderfundedAccount) JSONError

func (e *ErrorUnderfundedAccount) JSONError() gin.H

JSONError returns json of the error

func (*ErrorUnderfundedAccount) Message

func (e *ErrorUnderfundedAccount) Message() string

Message returns tring message of error

type ErrorUnimplementedFeature

type ErrorUnimplementedFeature struct {
}

ErrorUnimplementedFeature error struct

func (*ErrorUnimplementedFeature) Data

Data returns data of the error

func (*ErrorUnimplementedFeature) Error

func (e *ErrorUnimplementedFeature) Error() string

Error returns the error string

func (*ErrorUnimplementedFeature) ErrorType

func (e *ErrorUnimplementedFeature) ErrorType() string

ErrorType returns error type as string

func (*ErrorUnimplementedFeature) HTTPCode

func (e *ErrorUnimplementedFeature) HTTPCode() int

HTTPCode returns http status code

func (*ErrorUnimplementedFeature) JSONError

func (e *ErrorUnimplementedFeature) JSONError() gin.H

JSONError returns json of the error

func (*ErrorUnimplementedFeature) Message

func (e *ErrorUnimplementedFeature) Message() string

Message returns tring message of error

type ErrorUserDoesNotExist

type ErrorUserDoesNotExist struct {
	Username string
}

ErrorUserDoesNotExist is when user does not exist

func (*ErrorUserDoesNotExist) Data

func (e *ErrorUserDoesNotExist) Data() string

Data returns data of the error

func (*ErrorUserDoesNotExist) Error

func (e *ErrorUserDoesNotExist) Error() string

Error returns the error string

func (*ErrorUserDoesNotExist) ErrorType

func (e *ErrorUserDoesNotExist) ErrorType() string

ErrorType returns error type as string

func (*ErrorUserDoesNotExist) HTTPCode

func (e *ErrorUserDoesNotExist) HTTPCode() int

HTTPCode returns http status code

func (*ErrorUserDoesNotExist) JSONError

func (e *ErrorUserDoesNotExist) JSONError() gin.H

JSONError returns json of the error

func (*ErrorUserDoesNotExist) Message

func (e *ErrorUserDoesNotExist) Message() string

Message returns tring message of error

type ErrorUserInformationFailedValidation

type ErrorUserInformationFailedValidation struct {
}

ErrorUserInformationFailedValidation for invalid email formats

func (*ErrorUserInformationFailedValidation) Data

Data returns data of the error

func (*ErrorUserInformationFailedValidation) Error

Error returns the error string

func (*ErrorUserInformationFailedValidation) ErrorType

ErrorType returns error type as string

func (*ErrorUserInformationFailedValidation) HTTPCode

HTTPCode returns http status code

func (*ErrorUserInformationFailedValidation) JSONError

JSONError returns json of the error

func (*ErrorUserInformationFailedValidation) Message

Message returns tring message of error

type ErrorUsernameAlreadyExists

type ErrorUsernameAlreadyExists struct {
	Detail string
}

ErrorUsernameAlreadyExists is returned during registration when a username already exists

func (*ErrorUsernameAlreadyExists) Data

Data returns data of the error

func (*ErrorUsernameAlreadyExists) Error

Error returns the error string

func (*ErrorUsernameAlreadyExists) ErrorType

func (e *ErrorUsernameAlreadyExists) ErrorType() string

ErrorType returns error type as string

func (*ErrorUsernameAlreadyExists) HTTPCode

func (e *ErrorUsernameAlreadyExists) HTTPCode() int

HTTPCode returns http status code

func (*ErrorUsernameAlreadyExists) JSONError

func (e *ErrorUsernameAlreadyExists) JSONError() gin.H

JSONError returns json of the error

func (*ErrorUsernameAlreadyExists) Message

func (e *ErrorUsernameAlreadyExists) Message() string

Message returns tring message of error

type ErrorUsernameIsReserved

type ErrorUsernameIsReserved struct {
	Username string
}

ErrorUsernameIsReserved is returned during registration when a username already exists

func (*ErrorUsernameIsReserved) Data

func (e *ErrorUsernameIsReserved) Data() string

Data returns data of the error

func (*ErrorUsernameIsReserved) Error

func (e *ErrorUsernameIsReserved) Error() string

Error returns the error string

func (*ErrorUsernameIsReserved) ErrorType

func (e *ErrorUsernameIsReserved) ErrorType() string

ErrorType returns error type as string

func (*ErrorUsernameIsReserved) HTTPCode

func (e *ErrorUsernameIsReserved) HTTPCode() int

HTTPCode returns http status code

func (*ErrorUsernameIsReserved) JSONError

func (e *ErrorUsernameIsReserved) JSONError() gin.H

JSONError returns json of the error

func (*ErrorUsernameIsReserved) Message

func (e *ErrorUsernameIsReserved) Message() string

Message returns tring message of error

type ErrorUsernameIsSuspended

type ErrorUsernameIsSuspended struct {
	Username string
}

ErrorUsernameIsSuspended is returned during registration when a username already exists

func (*ErrorUsernameIsSuspended) Data

func (e *ErrorUsernameIsSuspended) Data() string

Data returns data of the error

func (*ErrorUsernameIsSuspended) Error

func (e *ErrorUsernameIsSuspended) Error() string

Error returns the error string

func (*ErrorUsernameIsSuspended) ErrorType

func (e *ErrorUsernameIsSuspended) ErrorType() string

ErrorType returns error type as string

func (*ErrorUsernameIsSuspended) HTTPCode

func (e *ErrorUsernameIsSuspended) HTTPCode() int

HTTPCode returns http status code

func (*ErrorUsernameIsSuspended) JSONError

func (e *ErrorUsernameIsSuspended) JSONError() gin.H

JSONError returns json of the error

func (*ErrorUsernameIsSuspended) Message

func (e *ErrorUsernameIsSuspended) Message() string

Message returns tring message of error

type ErrorVerificationCodeNotSent

type ErrorVerificationCodeNotSent struct {
}

ErrorVerificationCodeNotSent for verification codes that couldn't be sent for one reason or another

func (*ErrorVerificationCodeNotSent) Data

Data returns data of the error

func (*ErrorVerificationCodeNotSent) Error

Error returns the error string

func (*ErrorVerificationCodeNotSent) ErrorType

func (e *ErrorVerificationCodeNotSent) ErrorType() string

ErrorType returns error type as string

func (*ErrorVerificationCodeNotSent) HTTPCode

func (e *ErrorVerificationCodeNotSent) HTTPCode() int

HTTPCode returns http status code

func (*ErrorVerificationCodeNotSent) JSONError

func (e *ErrorVerificationCodeNotSent) JSONError() gin.H

JSONError returns json of the error

func (*ErrorVerificationCodeNotSent) Message

func (e *ErrorVerificationCodeNotSent) Message() string

Message returns tring message of error

type ErrorWalletMigrationFailure

type ErrorWalletMigrationFailure struct {
}

ErrorWalletMigrationFailure holds error struct

func (*ErrorWalletMigrationFailure) Data

Data returns data of the error

func (*ErrorWalletMigrationFailure) Error

Error returns the error string

func (*ErrorWalletMigrationFailure) ErrorType

func (e *ErrorWalletMigrationFailure) ErrorType() string

ErrorType returns error type as string

func (*ErrorWalletMigrationFailure) HTTPCode

func (e *ErrorWalletMigrationFailure) HTTPCode() int

HTTPCode returns http status code

func (*ErrorWalletMigrationFailure) JSONError

func (e *ErrorWalletMigrationFailure) JSONError() gin.H

JSONError returns json of the error

func (*ErrorWalletMigrationFailure) Message

func (e *ErrorWalletMigrationFailure) Message() string

Message returns tring message of error

type ErrorWalletUserMismatch

type ErrorWalletUserMismatch struct {
}

ErrorWalletUserMismatch holds error struct

func (*ErrorWalletUserMismatch) Data

func (e *ErrorWalletUserMismatch) Data() string

Data returns data of the error

func (*ErrorWalletUserMismatch) Error

func (e *ErrorWalletUserMismatch) Error() string

Error returns the error string

func (*ErrorWalletUserMismatch) ErrorType

func (e *ErrorWalletUserMismatch) ErrorType() string

ErrorType returns error type as string

func (*ErrorWalletUserMismatch) HTTPCode

func (e *ErrorWalletUserMismatch) HTTPCode() int

HTTPCode returns http status code

func (*ErrorWalletUserMismatch) JSONError

func (e *ErrorWalletUserMismatch) JSONError() gin.H

JSONError returns json of the error

func (*ErrorWalletUserMismatch) Message

func (e *ErrorWalletUserMismatch) Message() string

Message returns tring message of error

type GenericError

type GenericError interface {
	ErrorType() string
	Message() string
	Data() string
	JSONError() gin.H
	HTTPCode() int
}

GenericError interface for all BantuPay API errors

Jump to

Keyboard shortcuts

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