ruby on rails - Where is the list of the types of exceptions? -


please me find official documentation list of types of of exceptions. wrote action:

def show   begin     @user = user.find(params[:id])      rescue activerecord::recordnotfound => e     logger.debug e     logger.debug "error #{$!}"     render_404         end end 

i need mention several types of exceptions:

def show   begin     @user = user.find(params[:id])      rescue activerecord::recordnotfound => e     logger.debug e     logger.debug "error #{$!}"     render_404     rescue anotherexceptiontype1 => e        ......     ......     .....    rescue anotherexceptiontype2 => e        ......     ......     .....    rescue anotherexceptiontype3 => e        ......     ......     .....            end end 

but did not find list of exceptions in documentation.

you can see subclasses of activerecorderror here: https://github.com/rails/rails/blob/master/activerecord/lib/active_record/errors.rb


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -