Permalink
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 604 Bytes
// Copyright 2017 The go-hep Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package fwk
import (
"go-hep.org/x/hep/fwk/utils/errstack"
)
// Errorf formats according to a format specifier and returns the string as
// a value that satisfies error, together with the associated stack trace.
func Errorf(format string, args ...interface{}) error {
return errstack.Newf(format, args...)
}
// Error returns the original error with the associated stack trace.
func Error(err error) error {
return errstack.New(err)
}