Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(e error, fields ...map[string]interface{}) *snapError

    New returns an initialized SnapError. The variadic signature allows fields to optionally be added at construction.

    Types

    type Fields

    type Fields map[string]interface{}

    type SnapError

    type SnapError interface {
    	error
    	Fields() map[string]interface{}
    	SetFields(map[string]interface{})
    }

    Source Files