add PackagePanic

This commit is contained in:
tursom 2021-07-05 15:53:46 +08:00
parent eab2d2eeaa
commit 6edac38420

View File

@ -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(