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/
|
|
|
|
|
2024-04-30 12:24:05 +00:00
|
|
|
package errors ;import (_a "fmt";_ag "golang.org/x/xerrors";);func (_e *processError )Error ()string {var _gg string ;if _e ._g !=""{_gg =_e ._g ;};_gg +="\u0050r\u006f\u0063\u0065\u0073\u0073\u003a "+_e ._d ;if _e ._dd !=""{_gg +="\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u003a\u0020"+_e ._dd ;
|
|
|
|
};if _e ._ac !=nil {_gg +="\u002e\u0020"+_e ._ac .Error ();};return _gg ;};func _ef (_db ,_dbg string )*processError {return &processError {_g :"\u005b\u0055\u006e\u0069\u0050\u0044\u0046\u005d",_dd :_db ,_d :_dbg };};func Wrapf (err error ,processName ,message string ,arguments ...interface{})error {if _ae ,_cb :=err .(*processError );
|
|
|
|
_cb {_ae ._g ="";};_gb :=_ef (_a .Sprintf (message ,arguments ...),processName );_gb ._ac =err ;return _gb ;};func Error (processName ,message string )error {return _ef (message ,processName )};func Wrap (err error ,processName ,message string )error {if _ddd ,_ee :=err .(*processError );
|
|
|
|
_ee {_ddd ._g ="";};_gd :=_ef (message ,processName );_gd ._ac =err ;return _gd ;};type processError struct{_g string ;_d string ;_dd string ;_ac error ;};var _ _ag .Wrapper =(*processError )(nil );func Errorf (processName ,message string ,arguments ...interface{})error {return _ef (_a .Sprintf (message ,arguments ...),processName );
|
|
|
|
};func (_f *processError )Unwrap ()error {return _f ._ac };
|