Comments (1)
No response to this, which is fair, since it doesn't really ask any questions or propose any action, other than better documentation.
But there's a way to make things a little nicer without any compatibility issues (I think): Add FailsafeExecutionException
as a subclass of FailsafeException
and use it to wrap exceptions thrown during synchronous get
, instead of FailsafeException
. This wouldn't break any catch (FailsafeException ...) {...}
blocks, but it would allow a runtime distinction between FailsafeException
as wrapper vs. as superclass.
Only two FailsafeException
to FailsafeExecutionException
changes would be required, that I could find, here:
failsafe/core/src/main/java/dev/failsafe/SyncExecutionImpl.java
Lines 192 to 196 in 0f3f66d
and here:
failsafe/core/src/main/java/dev/failsafe/Functions.java
Lines 272 to 276 in 0f3f66d
(Incidentally, couldn't these be consolidated?)
So I changed the issue title to reflect this proposal.
from failsafe.
Related Issues (20)
- FYI: Very compact "lean" version of DelegatingScheduler HOT 1
- handleresultif and fallback with exception -- possible? HOT 6
- where is the logging? HOT 2
- Make CircuitBreaker delay time mockable for testing HOT 6
- Support Java Modules HOT 1
- Add Failsafe to vertx-awesome HOT 1
- Result futures strongly retain supplying functions
- Why does CheckedPredicate exist? HOT 2
- Also add note about default maxRetries of 3 to maxDuration section of the documentation HOT 7
- Bulkhead policy may drop requests when maxWaitTime is specified HOT 8
- Guidance around CheckedPredicate HOT 2
- Time based error limiter policy
- [Question]Can withBackoff and withDelay be used at the same time? HOT 2
- RetryPolicy handleIf not working with DynamoDbException in predicate HOT 4
- Having a context object in the run(...) and get(...) methods HOT 7
- dev.failsafe.Functions.* do not propagate toString to the wrapped object
- [Question] Is it possible to have multiple Fallback policies in one Failsafe executor? HOT 4
- [question] how to use failsafe with kotlin
- Feature Request: Integrate / add support for Lunar Proxy (backend policy) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from failsafe.