errors

package
v0.0.0-...-d4cc26c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2016 License: MIT Imports: 3 Imported by: 0

README

Repository information

Contains the error wrapper for the Iris web framework's code base

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Printf

func Printf(logger *logger.Logger, err error, args ...interface{})

Printf prints to the logger a specific error with optionally arguments

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error holds the error

func New

func New(errMsg string) *Error

New creates and returns an Error with a message

func (*Error) Error

func (e *Error) Error() string

Error returns the message of the actual error

func (*Error) Format

func (e *Error) Format(args ...interface{}) error

Format returns a formatted new error based on the arguments

func (*Error) Panic

func (e *Error) Panic()

Panic output the message and after panics

func (*Error) Panicf

func (e *Error) Panicf(args ...interface{})

Panicf output the formatted message and after panics

func (*Error) Return

func (e *Error) Return() error

Return returns the actual error as it is

func (*Error) With

func (e *Error) With(err error) error

With does the same thing as Format but it receives an error type which if it's nil it returns a nil error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL