mirror of
https://github.com/unidoc/unipdf.git
synced 2025-05-04 22:17:22 +08:00
12 lines
1.7 KiB
Go
12 lines
1.7 KiB
Go
//
|
|
// 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 (_g "fmt";_gf "golang.org/x/xerrors";);func Errorf (processName ,message string ,arguments ...interface{})error {return _fe (_g .Sprintf (message ,arguments ...),processName );};func (_a *processError )Unwrap ()error {return _a ._ec };func (_ge *processError )Error ()string {var _df string ;if _ge ._ff !=""{_df =_ge ._ff ;};_df +="\u0050r\u006f\u0063\u0065\u0073\u0073\u003a "+_ge ._e ;if _ge ._gg !=""{_df +="\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u003a\u0020"+_ge ._gg ;};if _ge ._ec !=nil {_df +="\u002e\u0020"+_ge ._ec .Error ();};return _df ;};func Error (processName ,message string )error {return _fe (message ,processName )};func Wrapf (err error ,processName ,message string ,arguments ...interface{})error {if _eb ,_b :=err .(*processError );_b {_eb ._ff ="";};_gc :=_fe (_g .Sprintf (message ,arguments ...),processName );_gc ._ec =err ;return _gc ;};type processError struct{_ff string ;_e string ;_gg string ;_ec error ;};func Wrap (err error ,processName ,message string )error {if _af ,_ef :=err .(*processError );_ef {_af ._ff ="";};_ac :=_fe (message ,processName );_ac ._ec =err ;return _ac ;};func _fe (_c ,_cg string )*processError {return &processError {_ff :"\u005b\u0055\u006e\u0069\u0050\u0044\u0046\u005d",_gg :_c ,_e :_cg };};var _ _gf .Wrapper =(*processError )(nil ); |