Documentation
¶
Index ¶
- Constants
- type Error
- func BadRequestError(location string) *Error
- func BadRequestMsgErr(msg string) *Error
- func ConflictError(message string) *Error
- func DetectError(err error) *Error
- func InternalServerError(err error) *Error
- func InternalServerErrorLoc(loc string, err error) *Error
- func New(message string, code int) *Error
- func NotAuthorizedError(message string) *Error
- func NotAuthorizedUser() *Error
- func NotFoundError(message string) *Error
- func SomethingMissingError(message string) *Error
- func UnavailableLegalReason(message string) *Error
Constants ¶
View Source
const ( UnknownServerError = 5000 EmailAlreadyRegistered = 5002 PasswordLessThanRequired = 5003 SomethingMissing = 5004 WrongConfirmationCode = 5005 WrongAccessToken = 5006 EmailNotRegistered = 5007 EmailAlreadyConfirmed = 5008 WrongPassword = 5009 DuplicateAPIKey = 5010 WrongEmailOrPassword = 5011 NameAlreadyRegistered = 5012 UserDeleted = 5013 ContentMissing = 5014 NoLeaguePresent = 5015 CantUnfollowLOT = 5016 ReferralCodeMissing = 5017 EmailBelongsToAnotherAccount = 5018 PhoneNumberBelongsToAnotherAccount = 5019 BotBalanceLessThanMinimum = 5031 BotKeyCantDelete = 5032 BotCompanyError = 5033 BotDoesntExistError = 5034 FunctionNotSupportedYetForGivenExchange = 5035 InvoicePaymentVerifyUnknownError = 5036 KeyHasNoPermissionForGivenOperation = 5037 LeagueRegisterByPassed = 5040 LeagueMinimumBalanceNotMet = 5041 LeagueRemovedDueToKeyDelete = 5042 ErrorBotRatioDifferenceHigh = 6001 ErrorBotCopyingKeyInvalidated = 6002 ErrorBotOriginalKeyInvalidated = 6003 ErrorBotPositionMismatch = 6004 ErrorBotUnknown = 6005 ErrorBotOpenOrderFound = 6006 ErrorKeyIsRegisteredInAnotherBot = 6007 ErrorKeyIsNotCopyLeader = 6008 ErrorCopyLeaderConditionsNotMet = 6009 ErrorBotBalanceNotSufficient = 6010 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error APIError error returned by APIHandler
func BadRequestError ¶
func BadRequestMsgErr ¶
func ConflictError ¶
func DetectError ¶
func InternalServerError ¶
func InternalServerErrorLoc ¶
func NotAuthorizedError ¶
func NotAuthorizedUser ¶
func NotAuthorizedUser() *Error
func NotFoundError ¶
func SomethingMissingError ¶
func UnavailableLegalReason ¶
Click to show internal directories.
Click to hide internal directories.