Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Traceable ¶
type Traceable struct { ErrorType TraceableType `json:"error_type"` Message string `json:"message"` Cause error `json:"cause"` }
Traceable contains all the details and error stack
func NewTraceable ¶
func NewTraceable(errorType TraceableType, message string, originError error) *Traceable
NewTraceable constructor for Traceable error
func (Traceable) StackTrace ¶
StackTrace print the stacktrace for the current error
type TraceableType ¶
type TraceableType string
TraceableType type alias for string
const ( NotFound TraceableType = "NotFound" CreateError TraceableType = "CreateError" UpdateError TraceableType = "UpdateError" DeleteError TraceableType = "DeleteError" BadRequest TraceableType = "BadRequest" TypeMismatch TraceableType = "TypeMismatch" )
Click to show internal directories.
Click to hide internal directories.