Documentation
¶
Index ¶
- Variables
- func WithDebug(err error, debug *models.Debug) error
- type DebugError
- func (de DebugError) Error() string
- func (de DebugError) GetColumn() int
- func (de DebugError) GetFile() string
- func (de DebugError) GetLine() int
- func (de DebugError) GetParentError() error
- func (de DebugError) HttpError() *HtmlError
- func (de DebugError) PrettyError(pf func(r io.Reader) string) string
- type HtmlError
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type DebugError ¶
type DebugError struct {
// contains filtered or unexported fields
}
DebugError is an error with debug information
func (DebugError) Error ¶
func (de DebugError) Error() string
Error returns the error message with debug information
func (DebugError) GetColumn ¶
func (de DebugError) GetColumn() int
func (DebugError) GetFile ¶
func (de DebugError) GetFile() string
func (DebugError) GetLine ¶
func (de DebugError) GetLine() int
func (DebugError) GetParentError ¶
func (de DebugError) GetParentError() error
func (DebugError) HttpError ¶
func (de DebugError) HttpError() *HtmlError
HttpError returns the error message with debug information for HTTP
func (DebugError) PrettyError ¶
func (de DebugError) PrettyError(pf func(r io.Reader) string) string
type HtmlError ¶
type HtmlError struct { Code []byte // contains filtered or unexported fields }
HtmlError is an error with HTML debug information
func NewHtmlError ¶
func NewHtmlError(de *DebugError) *HtmlError
NewHtmlError creates a new HtmlError
func (*HtmlError) Debug ¶
func (he *HtmlError) Debug() *DebugError
Click to show internal directories.
Click to hide internal directories.