Add retry to dispatch mechanism in case of guard failure
This commit is contained in:
parent
9b8fcef612
commit
8d42015334
@ -340,9 +340,12 @@ namespace dispatchkit
|
|||||||
try {
|
try {
|
||||||
return (*itr->second)(plist);
|
return (*itr->second)(plist);
|
||||||
} catch (const bad_boxed_cast &) {
|
} catch (const bad_boxed_cast &) {
|
||||||
//try again
|
//parameter failed to cast, try again
|
||||||
} catch (const arity_error &) {
|
} catch (const arity_error &) {
|
||||||
//invalid num params, try again
|
//invalid num params, try again
|
||||||
|
} catch (const guard_error &) {
|
||||||
|
//guard failed to allow the function to execute,
|
||||||
|
//try again
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user