Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimeoutMessage ¶
func GetTimeoutMessage() []byte
GetTimeoutMessage returns ErrorResponse with status code 408 and message "timeout"
func RespondWithError ¶
RespondWithError sends error response with the provided status code and error message
Types ¶
type Detail ¶
type Detail struct { Message string `json:"message"` Subaccount string `json:"subaccount"` LocationID string `json:"locationId"` }
Detail contains error details for scc
type DetailedError ¶
type DetailedError struct { Code int `json:"code"` Message string `json:"message"` Details []Detail `json:"details"` }
DetailedError indicates partial processing failure of on-premise systems
func (DetailedError) Error ¶
func (d DetailedError) Error() string
type ErrorResponse ¶
type ErrorResponse struct {
Error error `json:"error"`
}
ErrorResponse on failed notification service request
func (*ErrorResponse) UnmarshalJSON ¶
func (e *ErrorResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements Unmarshaler interface. The method unmarshal the data from b into ErrorResponse structure.
Click to show internal directories.
Click to hide internal directories.