Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetailedError ¶
type DetailedError struct { // a custom Hatchet error code // example: 1400 Code uint `json:"code"` // a reason for this error Reason string `json:"reason"` // a description for this error // example: A descriptive error message Description string `json:"description"` // a link to the documentation for this error, if it exists // example: github.com/hatchet-dev/hatchet DocsLink string `json:"docs_link"` }
func NewErrForbidden ¶
func NewErrForbidden(err error) *DetailedError
func NewErrInternal ¶
func NewErrInternal(err error) *DetailedError
func NewError ¶
func NewError(code uint, reason, description, docsLink string) *DetailedError
func (DetailedError) Error ¶
func (e DetailedError) Error() string
type NoOpAlerter ¶
type NoOpAlerter struct{}
Click to show internal directories.
Click to hide internal directories.