Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GeneralError ¶
type GeneralError struct { Code int Err error // This is the original defined error! AdditionalErrMsg string // This is additional, when we have an existing error, but we want to complete it with another message }
func Err ¶
func Err(code int, message ...interface{}) *GeneralError
Err -> This is used for defining at runtime errors!
func (*GeneralError) Error ¶
func (e *GeneralError) Error() string
func (*GeneralError) SetAdditionalError ¶
func (e *GeneralError) SetAdditionalError(additionalErrorMsg string)
Click to show internal directories.
Click to hide internal directories.