2021-03-13 21:28:23 +00:00

17 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 (_g "fmt";_e "golang.org/x/xerrors";);func Wrapf (err error ,processName ,message string ,arguments ...interface{})error {if _cc ,_bb :=err .(*processError );_bb {_cc ._ac ="";};_cb :=_b (_g .Sprintf (message ,arguments ...),processName );
_cb ._cd =err ;return _cb ;};func (_de *processError )Unwrap ()error {return _de ._cd };func Wrap (err error ,processName ,message string )error {if _dc ,_fc :=err .(*processError );_fc {_dc ._ac ="";};_bf :=_b (message ,processName );_bf ._cd =err ;return _bf ;
};type processError struct{_ac string ;_ef string ;_c string ;_cd error ;};func Errorf (processName ,message string ,arguments ...interface{})error {return _b (_g .Sprintf (message ,arguments ...),processName );};func (_gb *processError )Error ()string {var _f string ;
if _gb ._ac !=""{_f =_gb ._ac ;};_f +="\u0050r\u006f\u0063\u0065\u0073\u0073\u003a "+_gb ._ef ;if _gb ._c !=""{_f +="\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u003a\u0020"+_gb ._c ;};if _gb ._cd !=nil {_f +="\u002e\u0020"+_gb ._cd .Error ();};return _f ;
};func Error (processName ,message string )error {return _b (message ,processName )};func _b (_bg ,_da string )*processError {return &processError {_ac :"\u005b\u0055\u006e\u0069\u0050\u0044\u0046\u005d",_c :_bg ,_ef :_da };};var _ _e .Wrapper =(*processError )(nil );