ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
wwalker has joined #crystal-lang
<FromGitter> <Blacksmoke16> if your main goal is to rescue one exception and raise another of a diff type, what you're doing there is prob fine
<FromGitter> <Blacksmoke16> if you want it to be a bit more reuseable, maybe use a module with various overloads to handle the mapping, such that you can just have a singular `rescue`
Sankalp has quit [Ping timeout: 260 seconds]
Sankalp has joined #crystal-lang
<FromGitter> <rjnienaber> Not sure if it's intended but it looks like the backtrace is lost in the second example. Maybe it would be good to pass theboriginal exception as the `cause` parameter?
<FromGitter> <ym418_twitter> @Blacksmoke16 I used a macro that defined an enum, instead of using #dup.
_ht has joined #crystal-lang
taupiqueur has joined #crystal-lang
taupiqueur has quit [Remote host closed the connection]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Quit: Client closed]
hightower2 has quit [Remote host closed the connection]
ua_ has quit [Ping timeout: 248 seconds]
taupiqueur has joined #crystal-lang
jmdaemon has quit [Ping timeout: 250 seconds]
taupiqueur has quit [Remote host closed the connection]
taupiqueur has joined #crystal-lang
<FromGitter> <Blacksmoke16> That works too. IDT dup was what you wanted anyway. By duplicate I was just suggesting type it out once then copy paste it.
irc_user has joined #crystal-lang
taupiqueur has quit [Quit: Client closed]
ua_ has joined #crystal-lang
Sankalp has quit [Ping timeout: 250 seconds]
fifr- has quit [Ping timeout: 252 seconds]
_ht has quit [Remote host closed the connection]
Sankalp has joined #crystal-lang
irc_user has quit [Quit: Connection closed for inactivity]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Client Quit]
jmdaemon has joined #crystal-lang