Documentation
¶
Index ¶
- func NewErrorDeleteFailed(apiError https.ApiError) error
- func NewResponseDetailString(apiError https.ApiError) error
- func NewResponseHttp400(apiError https.ApiError) error
- func NewResponseHttp404(apiError https.ApiError) error
- func NewResponseLoginFailure(apiError https.ApiError) error
- func NewResponseSelfOauthLinkFailure(apiError https.ApiError) error
- type ErrorDeleteFailed
- type ResponseDetailString
- type ResponseHttp400
- type ResponseHttp404
- type ResponseLoginFailure
- type ResponseSelfOauthLinkFailure
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorDeleteFailed ¶
NewErrorDeleteFailed is a constructor for ErrorDeleteFailed. It creates and returns a pointer to a new ErrorDeleteFailed instance with the given statusCode and body.
func NewResponseDetailString ¶
NewResponseDetailString is a constructor for ResponseDetailString. It creates and returns a pointer to a new ResponseDetailString instance with the given statusCode and body.
func NewResponseHttp400 ¶
NewResponseHttp400 is a constructor for ResponseHttp400. It creates and returns a pointer to a new ResponseHttp400 instance with the given statusCode and body.
func NewResponseHttp404 ¶
NewResponseHttp404 is a constructor for ResponseHttp404. It creates and returns a pointer to a new ResponseHttp404 instance with the given statusCode and body.
func NewResponseLoginFailure ¶
NewResponseLoginFailure is a constructor for ResponseLoginFailure. It creates and returns a pointer to a new ResponseLoginFailure instance with the given statusCode and body.
func NewResponseSelfOauthLinkFailure ¶
NewResponseSelfOauthLinkFailure is a constructor for ResponseSelfOauthLinkFailure. It creates and returns a pointer to a new ResponseSelfOauthLinkFailure instance with the given statusCode and body.
Types ¶
type ErrorDeleteFailed ¶
type ErrorDeleteFailed struct {
https.ApiError
Detail string `json:"detail"`
OrgId uuid.UUID `json:"org_id"`
}
ErrorDeleteFailed is a custom error.
func (*ErrorDeleteFailed) Error ¶
func (e *ErrorDeleteFailed) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ErrorDeleteFailed.
type ResponseDetailString ¶
ResponseDetailString is a custom error.
func (*ResponseDetailString) Error ¶
func (r *ResponseDetailString) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseDetailString.
type ResponseHttp400 ¶
ResponseHttp400 is a custom error.
func (*ResponseHttp400) Error ¶
func (r *ResponseHttp400) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseHttp400.
type ResponseHttp404 ¶
ResponseHttp404 is a custom error.
func (*ResponseHttp404) Error ¶
func (r *ResponseHttp404) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseHttp404.
type ResponseLoginFailure ¶
type ResponseLoginFailure struct {
https.ApiError
Detail string `json:"detail"`
ForwardUrl *string `json:"forward_url,omitempty"`
}
ResponseLoginFailure is a custom error.
func (*ResponseLoginFailure) Error ¶
func (r *ResponseLoginFailure) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseLoginFailure.
type ResponseSelfOauthLinkFailure ¶
type ResponseSelfOauthLinkFailure struct {
https.ApiError
MError string `json:"error"`
ErrorDescription string `json:"error_description"`
}
ResponseSelfOauthLinkFailure is a custom error.
func (*ResponseSelfOauthLinkFailure) Error ¶
func (r *ResponseSelfOauthLinkFailure) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseSelfOauthLinkFailure.