github.com/unidoc/unipdf/v3@v3.55.0/internal/jbig2/errors/errors.go (about) 1 // 2 // Copyright 2020 FoxyUtils ehf. All rights reserved. 3 // 4 // This is a commercial product and requires a license to operate. 5 // A trial license can be obtained at https://unidoc.io 6 // 7 // DO NOT EDIT: generated by unitwist Go source code obfuscator. 8 // 9 // Use of this source code is governed by the UniDoc End User License Agreement 10 // terms that can be accessed at https://unidoc.io/eula/ 11 12 package errors ;import (_g "fmt";_e "golang.org/x/xerrors";);func Errorf (processName ,message string ,arguments ...interface{})error {return _da (_g .Sprintf (message ,arguments ...),processName );};func (_ae *processError )Error ()string {var _cf string ; 13 if _ae ._c !=""{_cf =_ae ._c ;};_cf +="\u0050r\u006f\u0063\u0065\u0073\u0073\u003a "+_ae ._a ;if _ae ._f !=""{_cf +="\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u003a\u0020"+_ae ._f ;};if _ae ._ed !=nil {_cf +="\u002e\u0020"+_ae ._ed .Error ();};return _cf ; 14 };var _ _e .Wrapper =(*processError )(nil );type processError struct{_c string ;_a string ;_f string ;_ed error ;};func Wrap (err error ,processName ,message string )error {if _bd ,_ab :=err .(*processError );_ab {_bd ._c ="";};_ea :=_da (message ,processName ); 15 _ea ._ed =err ;return _ea ;};func Error (processName ,message string )error {return _da (message ,processName )};func Wrapf (err error ,processName ,message string ,arguments ...interface{})error {if _aa ,_ce :=err .(*processError );_ce {_aa ._c ="";}; 16 _cc :=_da (_g .Sprintf (message ,arguments ...),processName );_cc ._ed =err ;return _cc ;};func (_gf *processError )Unwrap ()error {return _gf ._ed };func _da (_df ,_ag string )*processError {return &processError {_c :"\u005b\u0055\u006e\u0069\u0050\u0044\u0046\u005d",_f :_df ,_a :_ag }; 17 };