relevance / diametric

Diametric is a library for building schemas, queries, and transactions for Datomic from Ruby objects.
MIT License
169 stars 28 forks source link

Handle Java exceptions in the Peer persistence library #15

Closed avescodes closed 10 years ago

avescodes commented 12 years ago

Can we get more info on this @yokolet?

yokolet commented 12 years ago

Sure. We should create Ruby exception to wrap Java exception that datomic raises. JRuby catches both Ruby and Java exceptions, but Java exception occasionally blows up irb. This is unpleasant for developmet time.

yokolet commented 10 years ago

Exceptions thrown from Java API, especially from Datomic API, are all wrapped by Ruby exception. Diametric won't blow up IRB or pry session by such sort of exceptions.