QuantoError

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const AlreadyClient = "ALREADY_CLIENT"
View Source
const AlreadyExists = "ALREADY_EXISTS"
View Source
const AlreadyPaid = "ALREADY_PAID"
View Source
const AlreadySigned = "ALREADY_SIGNED"
View Source
const BankNotSupported = "BANK_NOT_SUPPORTED"
View Source
const BankingSystemOffline = "BANKING_SYSTEM_OFFLINE"
View Source
const BoletoCreationNotEnabled = "BOLETO_CREATION_NOT_ENABLED"
View Source
const BoletoOurNumberExausted = "BOLETO_OUR_NUMBER_EXAUSTED"
View Source
const EmailAlreadyInUse = "EMAIL_ALREADY_IN_USE"
View Source
const EverythingIsTerrible = "EVERYTHING_IS_TERRIBLE"

region Internal Use - Don"t worry about these if you"re a partner.

View Source
const GraphQLError = "GRAPHQL_ERROR"
View Source
const InsufficientFunds = "INSUFFICIENT_FUNDS"
View Source
const InternalServerError = "INTERNAL_SERVER_ERROR"

region Public Use

View Source
const InvalidFieldData = "INVALID_FIELD_DATA"
View Source
const InvalidLoginInformation = "INVALID_LOGIN_INFORMATION"
View Source
const InvalidTokenType = "INVALID_TOKEN_TYPE"
View Source
const InvalidTransactionDate = "INVALID_TRANSACTION_DATE"
View Source
const NoDataAvailable = "NO_DATA_AVAILABLE"
View Source
const NotFound = "NOT_FOUND"
View Source
const NotImplemented = "NOT_IMPLEMENTED"
View Source
const NotLogged = "NOT_LOGGED"
View Source
const OperationLimitExceeded = "OPERATION_LIMIT_EXCEEDED"
View Source
const OperationNotSupported = "OPERATION_NOT_SUPPORTED"
View Source
const OutdatedAPI = "OUTDATED_API"
View Source
const PaymentError = "PAYMENT_ERROR"
View Source
const PermissionDenied = "PERMISSION_DENIED"
View Source
const QITSystemOffline = "QIT_SYSTEM_OFFLINE"
View Source
const QuantoInternalError = "QUANTO_INTERNAL_ERROR"
View Source
const Rejected = "REJECTED"
View Source
const Revoked = "REVOKED"
View Source
const RoutingError = "ROUTING_ERROR"
View Source
const RoutingSystemOffline = "ROUTING_SYSTEM_OFFLINE"
View Source
const ServerIsBusy = "SERVER_IS_BUSY"
View Source
const SynchronizationError = "SYNCHRONIZATION_ERROR"
View Source
const TargetConnectionError = "CONNECTION_ERROR"
View Source
const VaultSystemOffline = "VAULT_SYSTEM_OFFLINE"
View Source
const VaulterIsDead = "VAULTER_IS_DEAD"

Variables

This section is empty.

Functions

func DisableStackTrace

func DisableStackTrace()

func EnableStackTrace

func EnableStackTrace()

func ShowStackTrace

func ShowStackTrace() bool

Flag to define if a stack trace is returned in response or not

Types

type ErrorObject

type ErrorObject struct {
	ErrorCode  string      `json:"errorCode"`
	ErrorField string      `json:"errorField"`
	Message    string      `json:"message"`
	ErrorData  interface{} `json:"errorData"`
	StackTrace string      `json:"stackTrace"`
}

func New

func New(errorCode, errorField, message string, errorData interface{}) *ErrorObject

func (*ErrorObject) Error

func (e *ErrorObject) Error() string

func (*ErrorObject) String

func (e *ErrorObject) String() string

func (*ErrorObject) ToFormattedError

func (e *ErrorObject) ToFormattedError() gqlerrors.FormattedError

Jump to

Keyboard shortcuts

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