16 lines
1.7 KiB
Go
Raw Normal View History

2020-08-27 21:45:09 +00:00
//
// 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/
2022-09-23 18:05:51 +00:00
package errors ;import (_d "fmt";_ff "golang.org/x/xerrors";);func Wrap (err error ,processName ,message string )error {if _ce ,_g :=err .(*processError );_g {_ce ._b ="";};_ca :=_e (message ,processName );_ca ._c =err ;return _ca ;};func (_dd *processError )Error ()string {var _bd string ;
if _dd ._b !=""{_bd =_dd ._b ;};_bd +="\u0050r\u006f\u0063\u0065\u0073\u0073\u003a "+_dd ._ffb ;if _dd ._df !=""{_bd +="\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u003a\u0020"+_dd ._df ;};if _dd ._c !=nil {_bd +="\u002e\u0020"+_dd ._c .Error ();};
return _bd ;};func Wrapf (err error ,processName ,message string ,arguments ...interface{})error {if _ec ,_fg :=err .(*processError );_fg {_ec ._b ="";};_cf :=_e (_d .Sprintf (message ,arguments ...),processName );_cf ._c =err ;return _cf ;};func _e (_bdf ,_ba string )*processError {return &processError {_b :"\u005b\u0055\u006e\u0069\u0050\u0044\u0046\u005d",_df :_bdf ,_ffb :_ba };
};type processError struct{_b string ;_ffb string ;_df string ;_c error ;};func (_dg *processError )Unwrap ()error {return _dg ._c };var _ _ff .Wrapper =(*processError )(nil );func Errorf (processName ,message string ,arguments ...interface{})error {return _e (_d .Sprintf (message ,arguments ...),processName );
};func Error (processName ,message string )error {return _e (message ,processName )};