mirror of
https://github.com/tursom/GoCollections.git
synced 2025-01-14 13:00:40 +08:00
add PackagePanic
This commit is contained in:
parent
eab2d2eeaa
commit
6edac38420
@ -108,6 +108,9 @@ func PackageAny(err interface{}) Exception {
|
||||
}
|
||||
|
||||
func PackagePanic(panic interface{}) Exception {
|
||||
if panic == nil {
|
||||
return nil
|
||||
}
|
||||
switch panic.(type) {
|
||||
case error:
|
||||
return NewRuntimeException(
|
||||
|
Loading…
Reference in New Issue
Block a user