Documentation ¶
Index ¶
- type CommonErrorResponse
- func NewAccountHasNoTrustlineErrorResponse() CommonErrorResponse
- func NewCreditTypeUnsupportedErrorResponse() CommonErrorResponse
- func NewExceedsDailyLimitErrorResponse() CommonErrorResponse
- func NewInactivatedPublicKeyErrorResponse() CommonErrorResponse
- func NewInternalErrorResponse() CommonErrorResponse
- func NewInvalidInputErrorResponse() CommonErrorResponse
- func NewInvalidPublicKeyErrorResponse() CommonErrorResponse
- func NewMissingInputCodeErrorResponse() CommonErrorResponse
- func NewMissingInputIssuerErrorResponse() CommonErrorResponse
- func NewUnauthorizedErrorResponse() CommonErrorResponse
- type Credit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonErrorResponse ¶
type CommonErrorResponse struct { ErrorCode int `json:"code"` ErrorMessage string `json:"message"` }
CommonErrorResponse of this application
func NewAccountHasNoTrustlineErrorResponse ¶
func NewAccountHasNoTrustlineErrorResponse() CommonErrorResponse
NewAccountHasNoTrustlineErrorResponse returns a new response reporting the destination account has no trustline of the requesting credit type
func NewCreditTypeUnsupportedErrorResponse ¶
func NewCreditTypeUnsupportedErrorResponse() CommonErrorResponse
NewCreditTypeUnsupportedErrorResponse returns a new response reporting credit being requested is not supported
func NewExceedsDailyLimitErrorResponse ¶
func NewExceedsDailyLimitErrorResponse() CommonErrorResponse
NewExceedsDailyLimitErrorResponse returns a new response reporting request is exceeding the daily limit
func NewInactivatedPublicKeyErrorResponse ¶
func NewInactivatedPublicKeyErrorResponse() CommonErrorResponse
NewInactivatedPublicKeyErrorResponse returns a new response reporting error getting account resources the account might have never been activated
func NewInternalErrorResponse ¶
func NewInternalErrorResponse() CommonErrorResponse
NewInternalErrorResponse returns a new response reporting an internal error
func NewInvalidInputErrorResponse ¶
func NewInvalidInputErrorResponse() CommonErrorResponse
NewInvalidInputErrorResponse returns a new response reporting error invalid input
func NewInvalidPublicKeyErrorResponse ¶
func NewInvalidPublicKeyErrorResponse() CommonErrorResponse
NewInvalidPublicKeyErrorResponse returns a new response reporting public key has invalid format
func NewMissingInputCodeErrorResponse ¶
func NewMissingInputCodeErrorResponse() CommonErrorResponse
NewMissingInputCodeErrorResponse returns a new response reporting missing argument 'code'
func NewMissingInputIssuerErrorResponse ¶
func NewMissingInputIssuerErrorResponse() CommonErrorResponse
NewMissingInputIssuerErrorResponse returns a new response reporting missing argument 'issuer'
func NewUnauthorizedErrorResponse ¶
func NewUnauthorizedErrorResponse() CommonErrorResponse
NewUnauthorizedErrorResponse returns a new response reporting the account has unauthorized