Custom exceptions in Ruby On Rails

config/application.rb

app/classes/exceptions/custom_error.rb