- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for RecoverFromPanic (0.19 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go
if f == nil { return "Unable to find caller" } return f.Name() } // RecoverFromPanic replaces the specified error with an error containing the // original error, and the call tree when a panic occurs. This enables error // handlers to handle errors and panics the same way. func RecoverFromPanic(err *error) { if r := recover(); r != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 9.9K bytes - Viewed (0) -
pkg/volume/util/types/types.go
Migrated: &context.Migrated, } defer o.CompleteFunc(c) } if o.EventRecorderFunc != nil { defer o.EventRecorderFunc(&eventErr) } // Handle panic, if any, from operationFunc() defer runtime.RecoverFromPanic(&detailedErr) context = o.OperationFunc() return context.EventErr, context.DetailedErr } // FailedPrecondition error indicates CSI operation returned failed precondition // error
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 31 17:23:56 UTC 2024 - 5.2K bytes - Viewed (0) -
pkg/util/goroutinemap/goroutinemap.go
defer k8sRuntime.HandleCrash() // Handle completion of and error, if any, from operationFunc() defer grm.operationComplete(operationName, &err) // Handle panic, if any, from operationFunc() defer k8sRuntime.RecoverFromPanic(&err) return operationFunc() }() return nil } // operationComplete handles the completion of a goroutine run in the // goRoutineMap. func (grm *goRoutineMap) operationComplete(
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 16 11:54:27 UTC 2020 - 6.8K bytes - Viewed (0)