public
Description: GentleREST is a lightweight web application framework for perfectionists. It is optimized for security, reliability, and speed, in that order.
Homepage: http://gentlerest.rubyforge.org/
Clone URL: git://github.com/sporkmonger/gentlerest.git
Added support for Instrument's exceptions.
sporkmonger (author)
Wed Jun 18 10:56:43 -0700 2008
commit  f88c2f1051cb054c25c71af96a08cb1f20983ce9
tree    c4de4c42458e5e0caf0b56fd3932282eb79ca135
parent  8953e7f1fdf17ed4d5454cc2a6be8bae99b16f80
...
119
120
121
122
123
124
125
 
 
 
 
 
126
127
128
...
119
120
121
 
 
 
 
122
123
124
125
126
127
128
129
0
@@ -119,10 +119,11 @@ module Rack
0
           end
0
         rescue Exception => error
0
           begin
0
- case error
0
- when ::GentleREST::NoRouteError,
0
- ::GentleREST::NoMatchingActionError,
0
- ::GentleREST::ResourceNotFoundError
0
+ case error.class.name
0
+ when "GentleREST::NoRouteError",
0
+ "GentleREST::NoMatchingActionError",
0
+ "GentleREST::ResourceNotFoundError",
0
+ "Instrument::ResourceNotFoundError"
0
               status = 404
0
             else
0
               status = 500

Comments

    No one has commented yet.