errors

package
v3.0.0-rc.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

README

Package information

I decide to split the errors from the main iris package because error.go doesn't depends on any of the iris' types.

Examples and more info will be added soon.

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