template

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CODE = 0

template type Exception(PARENT,CODE,WHAT)

View Source
const WHAT = ""

Variables

View Source
var ExceptionName = reflect.TypeOf(Exception{}).Name()

Functions

This section is empty.

Types

type Exception

type Exception struct {
	PARENT
	Elog log.Messages
}

func New

func New(parent PARENT, message log.Message) *Exception

func (*Exception) AppendLog

func (e *Exception) AppendLog(l log.Message)

func (Exception) Callback

func (e Exception) Callback(f interface{}) bool

func (Exception) Code

func (e Exception) Code() int64

func (Exception) DetailMessage

func (e Exception) DetailMessage() string

func (Exception) GetLog

func (e Exception) GetLog() log.Messages

func (Exception) MarshalJSON

func (e Exception) MarshalJSON() ([]byte, error)

func (Exception) Name

func (e Exception) Name() string

func (Exception) String

func (e Exception) String() string

func (Exception) TopMessage

func (e Exception) TopMessage() string

func (Exception) What

func (e Exception) What() string

type PARENT

type PARENT interface{}

Jump to

Keyboard shortcuts

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