GoCollections/exceptions/PackageException.go

21 lines
493 B
Go
Raw Normal View History

2022-11-25 18:19:33 +08:00
/*
* Copyright (c) 2022 tursom. All rights reserved.
* Use of this source code is governed by a GPL-3
* license that can be found in the LICENSE file.
*/
2021-07-06 14:32:01 +08:00
package exceptions
2022-03-31 01:22:30 +08:00
import (
"github.com/tursom/GoCollections/lang"
2022-03-31 01:22:30 +08:00
)
type PackageException = lang.PackageException
2021-07-06 14:32:01 +08:00
2022-03-31 01:22:30 +08:00
func NewPackageException(err any, config *ExceptionConfig) *PackageException {
return lang.NewPackageException(err, config.AddSkipStack(1))
2021-07-06 14:32:01 +08:00
}
2022-03-23 10:15:18 +08:00
func UnpackException(err any) any {
return lang.UnpackException(err)
2021-07-06 14:32:01 +08:00
}