sdkerrors

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error added in v2.1.3

type Error struct {
	ErrorCode    ErrorCode `json:"errorCode"`
	ErrorMessage string    `json:"errorMessage"`
}

Error - General error

func (*Error) Error added in v2.1.3

func (e *Error) Error() string

type ErrorCode

type ErrorCode string
const (
	ErrorCodeValidation ErrorCode = "VALIDATION"
	ErrorCodeNotFound   ErrorCode = "NOT_FOUND"
	ErrorCodeInternal   ErrorCode = "INTERNAL"
)

func (ErrorCode) ToPointer

func (e ErrorCode) ToPointer() *ErrorCode

func (*ErrorCode) UnmarshalJSON

func (e *ErrorCode) UnmarshalJSON(data []byte) error

type ErrorResponse

type ErrorResponse struct {
	Details      *string           `json:"details,omitempty"`
	ErrorCode    shared.ErrorsEnum `json:"errorCode"`
	ErrorMessage string            `json:"errorMessage"`
}

ErrorResponse - Error

func (*ErrorResponse) Error

func (e *ErrorResponse) Error() string

type PaymentsErrorResponse added in v2.2.0

type PaymentsErrorResponse struct {
	ErrorCode    shared.PaymentsErrorsEnum `json:"errorCode"`
	ErrorMessage string                    `json:"errorMessage"`
}

PaymentsErrorResponse - Error

func (*PaymentsErrorResponse) Error added in v2.2.0

func (e *PaymentsErrorResponse) Error() string

type ReconciliationErrorResponse added in v2.1.3

type ReconciliationErrorResponse struct {
	Details      *string `json:"details,omitempty"`
	ErrorCode    string  `json:"errorCode"`
	ErrorMessage string  `json:"errorMessage"`
}

ReconciliationErrorResponse - Error response

func (*ReconciliationErrorResponse) Error added in v2.1.3

type SDKError

type SDKError struct {
	Message     string
	StatusCode  int
	Body        string
	RawResponse *http.Response
}

func NewSDKError

func NewSDKError(message string, statusCode int, body string, httpRes *http.Response) *SDKError

func (*SDKError) Error

func (e *SDKError) Error() string

type SchemasErrorCode added in v2.1.2

type SchemasErrorCode string
const (
	SchemasErrorCodeValidation SchemasErrorCode = "VALIDATION"
	SchemasErrorCodeNotFound   SchemasErrorCode = "NOT_FOUND"
	SchemasErrorCodeInternal   SchemasErrorCode = "INTERNAL"
)

func (SchemasErrorCode) ToPointer added in v2.1.2

func (e SchemasErrorCode) ToPointer() *SchemasErrorCode

func (*SchemasErrorCode) UnmarshalJSON added in v2.1.2

func (e *SchemasErrorCode) UnmarshalJSON(data []byte) error

type SchemasWalletsErrorResponseErrorCode added in v2.1.3

type SchemasWalletsErrorResponseErrorCode string
const (
	SchemasWalletsErrorResponseErrorCodeValidation       SchemasWalletsErrorResponseErrorCode = "VALIDATION"
	SchemasWalletsErrorResponseErrorCodeInternalError    SchemasWalletsErrorResponseErrorCode = "INTERNAL_ERROR"
	SchemasWalletsErrorResponseErrorCodeInsufficientFund SchemasWalletsErrorResponseErrorCode = "INSUFFICIENT_FUND"
	SchemasWalletsErrorResponseErrorCodeHoldClosed       SchemasWalletsErrorResponseErrorCode = "HOLD_CLOSED"
)

func (SchemasWalletsErrorResponseErrorCode) ToPointer added in v2.1.3

func (*SchemasWalletsErrorResponseErrorCode) UnmarshalJSON added in v2.1.3

func (e *SchemasWalletsErrorResponseErrorCode) UnmarshalJSON(data []byte) error

type V2Error

type V2Error struct {
	ErrorCode    SchemasErrorCode `json:"errorCode"`
	ErrorMessage string           `json:"errorMessage"`
}

V2Error - General error

func (*V2Error) Error

func (e *V2Error) Error() string

type V2ErrorResponse

type V2ErrorResponse struct {
	Details      *string             `json:"details,omitempty"`
	ErrorCode    shared.V2ErrorsEnum `json:"errorCode"`
	ErrorMessage string              `json:"errorMessage"`
}

V2ErrorResponse - Error

func (*V2ErrorResponse) Error

func (e *V2ErrorResponse) Error() string

type WalletsErrorResponse added in v2.1.2

type WalletsErrorResponse struct {
	ErrorCode    SchemasWalletsErrorResponseErrorCode `json:"errorCode"`
	ErrorMessage string                               `json:"errorMessage"`
}

WalletsErrorResponse - Error

func (*WalletsErrorResponse) Error added in v2.1.2

func (e *WalletsErrorResponse) Error() string

type WebhooksErrorResponse

type WebhooksErrorResponse struct {
	Details      *string                   `json:"details,omitempty"`
	ErrorCode    shared.WebhooksErrorsEnum `json:"errorCode"`
	ErrorMessage string                    `json:"errorMessage"`
}

WebhooksErrorResponse - Error

func (*WebhooksErrorResponse) Error

func (e *WebhooksErrorResponse) Error() string

Jump to

Keyboard shortcuts

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