GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Fixes #503; raise InternalServerError works now.

http://merb.lighthouseapp.com/projects/7433/tickets/503

InternalServerError's (ISE's) used to be 'special' in a previous
release.  They aren't special anymore.

We should add a spec in addition to this change.  I looked over
the specs and I'm not sure where a spec should go.
David James (author)
Sun Sep 28 19:10:36 -0700 2008
commit  21db301aa5d4277dd19d9b1b1a30e469de012298
tree    91ee88f4ba0688aab815e095b19c53ba2b4db45e
parent  e3159c418376bab845df40ed733960b62818581a
...
278
279
280
 
 
281
282
283
...
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
...
278
279
280
281
282
283
284
285
...
289
290
291
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
292
293
294
0
@@ -278,6 +278,8 @@ module Merb
0
 
0
     class ServerError < Merb::ControllerExceptions::Base; end
0
 
0
+ class InternalServerError < Merb::ControllerExceptions::ServerError; self.status = 500; end
0
+
0
       class NotImplemented < Merb::ControllerExceptions::ServerError; self.status = 501; end
0
 
0
       class BadGateway < Merb::ControllerExceptions::ServerError; self.status = 502; end
0
@@ -287,21 +289,6 @@ module Merb
0
       class GatewayTimeout < Merb::ControllerExceptions::ServerError; self.status = 504; end
0
 
0
       class HTTPVersionNotSupported < Merb::ControllerExceptions::ServerError; self.status = 505; end
0
-
0
- class InternalServerError < Merb::ControllerExceptions::ServerError #:doc:
0
- self.status = 500;
0
- def initialize(exception = nil)
0
- @exception = exception
0
- end
0
-
0
- def backtrace
0
- @exception ? @exception.backtrace : backtrace
0
- end
0
-
0
- def message
0
- @exception ? @exception.message : message
0
- end
0
- end
0
   end
0
   
0
   # Required to show exceptions in the log file

Comments

    No one has commented yet.