You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2025. It is now read-only.
Kevin Disneur edited this page Feb 27, 2017
·
1 revision
Examples
How to catch specific errors?
The specific error tuple containing the error is stored inside the Bamboo.SMTPAdapter.SMTPError structure. You could access it this way:
defsend_an_email(email)dotrydoMyApp.Mailer.deliver_now(email)rescueerrorinBamboo.SMTPAdapter.SMTPError->caseerror.rawdo{:retries_exceeded,_}->IO.inspect("I can do some stuff when this error match")_->IO.inspect"I don't care about these ones"end# Here, I can re-raise the errorraiseerrorendend