Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidationError ¶
IsValidationError returns true if err is a ValidationError returns false otherwise
func ValidationErrorf ¶
ValidationErrorf formats a new ValidationError
Types ¶
type TraceableError ¶
TraceableError is an internal error used to carry trace details to be shared across the multiple layers and reporting facilities
func (TraceableError) Error ¶
func (e TraceableError) Error() string
type ValidationError ¶
ValidationError is a type of error used to report model or any general condition validation error. We don't deal this error as a regular error i.e panic`ing, showing the error stack trace and exiting with a non zero code, otherwise, we do show a nicely formatted and user friendly error message (the What attribute) and keep returning a non zero exit code. Consider this error as a user error, not an internal malfunctioning.
func (ValidationError) Error ¶
func (ve ValidationError) Error() string