There are some great books and courses available on the Error and exception handling
Avdi Grimm
Exceptional Ruby Ebook