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-07-30 00:21:16 +00:00
package errors ;import (_a "fmt";_e "golang.org/x/xerrors";);func (_fe *processError )Error ()string {var _gg string ;if _fe ._fb !=""{_gg =_fe ._fb ;};_gg +="\u0050r\u006f\u0063\u0065\u0073\u0073\u003a "+_fe ._c ;if _fe ._dc !=""{_gg +="\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u003a\u0020"+_fe ._dc ;
};if _fe ._g !=nil {_gg +="\u002e\u0020"+_fe ._g .Error ();};return _gg ;};var _ _e .Wrapper =(*processError )(nil );type processError struct{_fb string ;_c string ;_dc string ;_g error ;};func Wrap (err error ,processName ,message string )error {if _gf ,_ec :=err .(*processError );
_ec {_gf ._fb ="";};_fc :=_bb (message ,processName );_fc ._g =err ;return _fc ;};func (_b *processError )Unwrap ()error {return _b ._g };func _bb (_ac ,_gc string )*processError {return &processError {_fb :"\u005b\u0055\u006e\u0069\u0050\u0044\u0046\u005d",_dc :_ac ,_c :_gc };
};func Error (processName ,message string )error {return _bb (message ,processName )};func Errorf (processName ,message string ,arguments ...interface{})error {return _bb (_a .Sprintf (message ,arguments ...),processName );};func Wrapf (err error ,processName ,message string ,arguments ...interface{})error {if _ef ,_ea :=err .(*processError );
_ea {_ef ._fb ="";};_af :=_bb (_a .Sprintf (message ,arguments ...),processName );_af ._g =err ;return _af ;};