2020-11-11 18:48:37 +00:00

12 lines
1.7 KiB
Go

//
// Copyright 2020 FoxyUtils ehf. All rights reserved.
//
// This is a commercial product and requires a license to operate.
// A trial license can be obtained at https://unidoc.io
//
// DO NOT EDIT: generated by unitwist Go source code obfuscator.
//
// Use of this source code is governed by the UniDoc End User License Agreement
// terms that can be accessed at https://unidoc.io/eula/
package errors ;import (_c "fmt";_gb "golang.org/x/xerrors";);func Wrapf (err error ,processName ,message string ,arguments ...interface{})error {if _db ,_ce :=err .(*processError );_ce {_db ._e ="";};_cf :=_fg (_c .Sprintf (message ,arguments ...),processName );_cf ._ee =err ;return _cf ;};func _fg (_cac ,_ge string )*processError {return &processError {_e :"\u005b\u0055\u006e\u0069\u0050\u0044\u0046\u005d",_bd :_cac ,_ca :_ge };};func Error (processName ,message string )error {return _fg (message ,processName )};type processError struct{_e string ;_ca string ;_bd string ;_ee error ;};func Wrap (err error ,processName ,message string )error {if _ea ,_gc :=err .(*processError );_gc {_ea ._e ="";};_a :=_fg (message ,processName );_a ._ee =err ;return _a ;};func Errorf (processName ,message string ,arguments ...interface{})error {return _fg (_c .Sprintf (message ,arguments ...),processName );};func (_f *processError )Unwrap ()error {return _f ._ee };var _ _gb .Wrapper =(*processError )(nil );func (_d *processError )Error ()string {var _ec string ;if _d ._e !=""{_ec =_d ._e ;};_ec +="\u0050r\u006f\u0063\u0065\u0073\u0073\u003a "+_d ._ca ;if _d ._bd !=""{_ec +="\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u003a\u0020"+_d ._bd ;};if _d ._ee !=nil {_ec +="\u002e\u0020"+_d ._ee .Error ();};return _ec ;};