clojusc / results Goto Github PK
View Code? Open in Web Editor NEWA (meta)data-centric, FP approach to error handling in Clojure
License: Apache License 2.0
A (meta)data-centric, FP approach to error handling in Clojure
License: Apache License 2.0
Do a bunch of nested checks.
Then show the same thing using this library.
Once #3 is done, we can simply update the returned hashmap with a call to collect-values
.
This should highlight the philosophy of a data-centric, message-passing approach. Keep it brief.
Then do the background.
exception
- ex
stacktrace
- from (.getStackTrace ex)
exception-type
- from (type ex)
suppressed
- from (.getSuppressed ex)
cause
- from (.getCause ex)
util
ns for adding these to and returning them from metadata:msg
and value (ex-message ex)
, then call the exception
error methods defined above to set ex
in the metadata. All other methods can use ex
from the metadata for their impls.Note that not all errors have to be exceptions; the Error constructor, setter, and getter should account for this.
This can be done by passing an opts hashmap to the constructor.
Multi-arity macros are supported in Clojure, but can be a bit awkward. Probably want to use a helper function here ... (see https://stackoverflow.com/a/25569059)
Show collecting results and errors when querying multiple services. Error messages can show which service they come from ...
Create an examples
directory showing usage with core.async
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.