2023-08-03 17:30:04 +00:00

16 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 (_df "fmt";_e "golang.org/x/xerrors";);func Wrap (err error ,processName ,message string )error {if _eb ,_bb :=err .(*processError );_bb {_eb ._a ="";};_g :=_ff (message ,processName );_g ._bc =err ;return _g ;};func (_fa *processError )Unwrap ()error {return _fa ._bc };
type processError struct{_a string ;_c string ;_f string ;_bc error ;};func Error (processName ,message string )error {return _ff (message ,processName )};func Wrapf (err error ,processName ,message string ,arguments ...interface{})error {if _bd ,_af :=err .(*processError );
_af {_bd ._a ="";};_gf :=_ff (_df .Sprintf (message ,arguments ...),processName );_gf ._bc =err ;return _gf ;};func (_dfg *processError )Error ()string {var _da string ;if _dfg ._a !=""{_da =_dfg ._a ;};_da +="\u0050r\u006f\u0063\u0065\u0073\u0073\u003a "+_dfg ._c ;
if _dfg ._f !=""{_da +="\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u003a\u0020"+_dfg ._f ;};if _dfg ._bc !=nil {_da +="\u002e\u0020"+_dfg ._bc .Error ();};return _da ;};var _ _e .Wrapper =(*processError )(nil );func _ff (_dfc ,_ba string )*processError {return &processError {_a :"\u005b\u0055\u006e\u0069\u0050\u0044\u0046\u005d",_f :_dfc ,_c :_ba };
};func Errorf (processName ,message string ,arguments ...interface{})error {return _ff (_df .Sprintf (message ,arguments ...),processName );};