2020-09-07 00:23:12 +00:00

12 lines
1.5 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";func Wrapf (err error ,processName ,message string ,arguments ...interface{})error {if _fb ,_ba :=err .(*processError );_ba {_fb ._d ="";};_fbg :=_dd (_g .Sprintf (message ,arguments ...),processName );_fbg ._a =err ;return _fbg ;};func Wrap (err error ,processName ,message string )error {if _dg ,_ee :=err .(*processError );_ee {_dg ._d ="";};_ec :=_dd (message ,processName );_ec ._a =err ;return _ec ;};type processError struct{_d string ;_e string ;_f string ;_a error ;};func Error (processName ,message string )error {return _dd (message ,processName )};func (_da *processError )Error ()string {var _c string ;if _da ._d !=""{_c =_da ._d ;};_c +="\u0050r\u006f\u0063\u0065\u0073\u0073\u003a "+_da ._e ;if _da ._f !=""{_c +="\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u003a\u0020"+_da ._f ;};if _da ._a !=nil {_c +="\u002e\u0020"+_da ._a .Error ();};return _c ;};func Errorf (processName ,message string ,arguments ...interface{})error {return _dd (_g .Sprintf (message ,arguments ...),processName );};func _dd (_df ,_bf string )*processError {return &processError {_d :"\u005b\u0055\u006e\u0069\u0050\u0044\u0046\u005d",_f :_df ,_e :_bf };};