error

package module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

error

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IError

type IError interface {
	error
	InternalError() string
	HTTPCode() int
}

IError - interface for error

type Message

type Message struct {
	Message         string `json:"message,omitempty"`
	InternalMessage string `json:"internal_message,omitempty"`
	ErrorCode       string `json:"error_code,omitempty"`
}

Message error

func (*Message) Error

func (b *Message) Error() string

Error - return message

func (*Message) GetErrorCode

func (b *Message) GetErrorCode() string

GetErrorCode - return error code

func (*Message) GetHTTPCode

func (b *Message) GetHTTPCode() int

GetHTTPCode - return code

func (*Message) InternalError

func (b *Message) InternalError() string

InternalError - return internal message

Jump to

Keyboard shortcuts

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