mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-24 13:48:49 +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 _c "fmt";type processError struct{_d string ;_b string ;_f string ;_bb error ;};func Wrapf (err error ,processName ,message string ,arguments ...interface{})error {if _ga ,_ec :=err .(*processError );_ec {_ga ._d ="";};_gaf :=_e (_c .Sprintf (message ,arguments ...),processName );_gaf ._bb =err ;return _gaf ;};func Errorf (processName ,message string ,arguments ...interface{})error {return _e (_c .Sprintf (message ,arguments ...),processName );};func Wrap (err error ,processName ,message string )error {if _bc ,_ac :=err .(*processError );_ac {_bc ._d ="";};_ce :=_e (message ,processName );_ce ._bb =err ;return _ce ;};func (_de *processError )Error ()string {var _da string ;if _de ._d !=""{_da =_de ._d ;};_da +="\u0050r\u006f\u0063\u0065\u0073\u0073\u003a "+_de ._b ;if _de ._f !=""{_da +="\u0020\u004d\u0065\u0073\u0073\u0061\u0067\u0065\u003a\u0020"+_de ._f ;};if _de ._bb !=nil {_da +="\u002e\u0020"+_de ._bb .Error ();};return _da ;};func Error (processName ,message string )error {return _e (message ,processName )};func _e (_g ,_cf string )*processError {return &processError {_d :"\u005b\u0055\u006e\u0069\u0050\u0044\u0046\u005d",_f :_g ,_b :_cf };}; |