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-05-31 17:17:31 +00:00
|
|
|
package errors ;import (_f "fmt";_e "golang.org/x/xerrors";);type processError struct{_g string ;_cd string ;_b string ;_ba error ;};var _ _e .Wrapper =(*processError )(nil );func Error (processName ,message string )error {return _gg (message ,processName )};
|
|
|
|
func Wrapf (err error ,processName ,message string ,arguments ...interface{})error {if _abg ,_ebc :=err .(*processError );_ebc {_abg ._g ="";};_ac :=_gg (_f .Sprintf (message ,arguments ...),processName );_ac ._ba =err ;return _ac ;};func (_gc *processError )Unwrap ()error {return _gc ._ba };
|
|
|
|
func Errorf (processName ,message string ,arguments ...interface{})error {return _gg (_f .Sprintf (message ,arguments ...),processName );};func Wrap (err error ,processName ,message string )error {if _ed ,_d :=err .(*processError );_d {_ed ._g ="";};_ge :=_gg (message ,processName );
|
|
|
|
_ge ._ba =err ;return _ge ;};func (_eb *processError )Error ()string {var _ab string ;if _eb ._g !=""{_ab =_eb ._g ;};_ab +="\u0050r\u006f\u0063\u0065\u0073\u0073\u003a "+_eb ._cd ;if _eb ._b !=""{_ab +="\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u003a\u0020"+_eb ._b ;
|
|
|
|
};if _eb ._ba !=nil {_ab +="\u002e\u0020"+_eb ._ba .Error ();};return _ab ;};func _gg (_ag ,_cf string )*processError {return &processError {_g :"\u005b\u0055\u006e\u0069\u0050\u0044\u0046\u005d",_b :_ag ,_cd :_cf };};
|