mirror of
https://github.com/tursom/GoCollections.git
synced 2025-03-14 01:10:18 +08:00
21 lines
493 B
Go
21 lines
493 B
Go
/*
|
|
* 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.
|
|
*/
|
|
|
|
package exceptions
|
|
|
|
import (
|
|
"github.com/tursom/GoCollections/lang"
|
|
)
|
|
|
|
type PackageException = lang.PackageException
|
|
|
|
func NewPackageException(err any, config *ExceptionConfig) *PackageException {
|
|
return lang.NewPackageException(err, config.AddSkipStack(1))
|
|
}
|
|
func UnpackException(err any) any {
|
|
return lang.UnpackException(err)
|
|
}
|