This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
@gary: Yes. I know Java interop. I am just having trouble modelling my domain in more of a Clojurish way.
I am writing a app. In my app , I go from A (an url of a certain website) ,B( crawl it with phantomjs or just with clj-http if phantomjs crawling fails in given time) ,C(Index crawled page in ElasticSearch, and extract URLs and save them in a DB. ).... Thing is that if certain step fails I want to have throw exception which includes Information about previous steps.
I've already implemented what I described above , but it just felt awkward and not lispy.
My first thought on that would be to have a map with information in it that gets passed from step to step and then queried for information if there’s an error somewhere along the way.
Think about it like this: what you’re doing is essentially keeping a log of the process. So you can have each function add its action and result to the data.