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.
type Fields map[string]interface{}
type SnapError interface { error Fields() map[string]interface{} SetFields(map[string]interface{}) }