mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-30 13:48:51 +08:00
12 lines
1.5 KiB
Go
12 lines
1.5 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 _a "fmt";func Error (processName ,message string )error {return _cc (message ,processName )};func Wrapf (err error ,processName ,message string ,arguments ...interface{})error {if _cg ,_eb :=err .(*processError );_eb {_cg ._af ="";};_d :=_cc (_a .Sprintf (message ,arguments ...),processName );_d ._b =err ;return _d ;};type processError struct{_af string ;_c string ;_e string ;_b error ;};func Wrap (err error ,processName ,message string )error {if _ea ,_ef :=err .(*processError );_ef {_ea ._af ="";};_afc :=_cc (message ,processName );_afc ._b =err ;return _afc ;};func (_ae *processError )Error ()string {var _g string ;if _ae ._af !=""{_g =_ae ._af ;};_g +="\u0050r\u006f\u0063\u0065\u0073\u0073\u003a "+_ae ._c ;if _ae ._e !=""{_g +="\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u003a\u0020"+_ae ._e ;};if _ae ._b !=nil {_g +="\u002e\u0020"+_ae ._b .Error ();};return _g ;};func Errorf (processName ,message string ,arguments ...interface{})error {return _cc (_a .Sprintf (message ,arguments ...),processName );};func _cc (_ff ,_cd string )*processError {return &processError {_af :"\u005b\u0055\u006e\u0069\u0050\u0044\u0046\u005d",_e :_ff ,_c :_cd };}; |