error

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package error helpers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatchPanic

func CatchPanic(err *error, functionName string)

CatchPanic catch the error panic and pretty print

func Check

func Check(e error, m string)

Check return panic when error != nil

Types

type Err

type Err struct {
	Name string
}

Err used for return string error

func (*Err) Error

func (e *Err) Error() string

type Errors

type Errors struct {
	ParameterName string `json:"parameter_name"`
	Type          string `json:"type"`
	Message       string `json:"message"`
}

Errors relationship on ErrorsAPI

type ErrorsAPI

type ErrorsAPI struct {
	Errors []Errors `json:"errors"`
	Url    string   `json:"url"`
	Method string   `json:"method"`
}

ErrorsAPI struct for return errors of the API

Jump to

Keyboard shortcuts

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