Documentation
¶
Index ¶
- func Is(err error) bool
- type ExceptionData
- type Expection
- func (e *Expection) Error() string
- func (e *Expection) GetMessage(html bool) string
- func (e *Expection) HTML() *HtmlError
- func (e *Expection) JSON(pretty ...bool) ([]byte, error)
- func (e *Expection) WithBase(err error) *Expection
- func (e *Expection) WithDebug(debug *debug.Debug) *Expection
- func (e *Expection) WithLevel(level Level) *Expection
- func (e *Expection) WithStatusCode(code int) *Expection
- func (e *Expection) WithTrace(trace *debug.Debug) *Expection
- type HtmlError
- type JSONDebug
- type JSONError
- type JSONErrorNubo
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExceptionData ¶
type ExceptionData struct { Base string Message string Level Level Debug *debug.Debug StackTrace []*debug.Debug }
func Unwrap ¶
func Unwrap(err error) (*ExceptionData, bool)
type Expection ¶
type Expection struct {
// contains filtered or unexported fields
}
func (*Expection) GetMessage ¶
func (*Expection) WithStatusCode ¶
type JSONErrorNubo ¶
Click to show internal directories.
Click to hide internal directories.