aboutsummaryrefslogtreecommitdiff
path: root/unipdf/internal/jbig2/errors/errors.go
blob: 5b4b265186d1796713cdaee31475ac086584d762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//
// 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 (_d "fmt";_da "golang.org/x/xerrors";);func (_de *processError )Error ()string {var _dfg string ;if _de ._e !=""{_dfg =_de ._e ;};_dfg +="\u0050r\u006f\u0063\u0065\u0073\u0073\u003a "+_de ._dc ;if _de ._eb !=""{_dfg +="\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u003a\u0020"+_de ._eb ;
};if _de ._g !=nil {_dfg +="\u002e\u0020"+_de ._g .Error ();};return _dfg ;};func (_df *processError )Unwrap ()error {return _df ._g };var _ _da .Wrapper =(*processError )(nil );func Error (processName ,message string )error {return _b (message ,processName )};
func Errorf (processName ,message string ,arguments ...interface{})error {return _b (_d .Sprintf (message ,arguments ...),processName );};func _b (_gf ,_ag string )*processError {return &processError {_e :"\u005b\u0055\u006e\u0069\u0050\u0044\u0046\u005d",_eb :_gf ,_dc :_ag };
};type processError struct{_e string ;_dc string ;_eb string ;_g error ;};func Wrap (err error ,processName ,message string )error {if _ec ,_f :=err .(*processError );_f {_ec ._e ="";};_c :=_b (message ,processName );_c ._g =err ;return _c ;};func Wrapf (err error ,processName ,message string ,arguments ...interface{})error {if _fd ,_ga :=err .(*processError );
_ga {_fd ._e ="";};_ad :=_b (_d .Sprintf (message ,arguments ...),processName );_ad ._g =err ;return _ad ;};