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/
2021-09-23 22:37:42 +00:00
package errors ;import (_d "fmt";_ea "golang.org/x/xerrors";);func Wrap (err error ,processName ,message string )error {if _ef ,_dc :=err .(*processError );_dc {_ef ._eaf ="";};_dg :=_eb (message ,processName );_dg ._c =err ;return _dg ;};func Error (processName ,message string )error {return _eb (message ,processName )};
func _eb (_g ,_fb string )*processError {return &processError {_eaf :"\u005b\u0055\u006e\u0069\u0050\u0044\u0046\u005d",_de :_g ,_f :_fb };};var _ _ea .Wrapper =(*processError )(nil );type processError struct{_eaf string ;_f string ;_de string ;_c error ;
};func Errorf (processName ,message string ,arguments ...interface{})error {return _eb (_d .Sprintf (message ,arguments ...),processName );};func (_cb *processError )Error ()string {var _bf string ;if _cb ._eaf !=""{_bf =_cb ._eaf ;};_bf +="\u0050r\u006f\u0063\u0065\u0073\u0073\u003a "+_cb ._f ;
if _cb ._de !=""{_bf +="\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u003a\u0020"+_cb ._de ;};if _cb ._c !=nil {_bf +="\u002e\u0020"+_cb ._c .Error ();};return _bf ;};func (_bg *processError )Unwrap ()error {return _bg ._c };func Wrapf (err error ,processName ,message string ,arguments ...interface{})error {if _a ,_ad :=err .(*processError );
_ad {_a ._eaf ="";};_deb :=_eb (_d .Sprintf (message ,arguments ...),processName );_deb ._c =err ;return _deb ;};