~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/dispatch/request.py

Remove both normal and cgirequest's throw_error().

Show diffs side-by-side

added added

removed removed

Lines of Context:
296
296
        else:
297
297
            return self.apache_req.read(len)
298
298
 
299
 
    def throw_error(self, httpcode, message=None):
300
 
        """Writes out an HTTP error of the specified code. Raises an exception
301
 
        which is caught by the dispatch or web server, so any code following
302
 
        this call will not be executed.
303
 
 
304
 
        httpcode: An HTTP response status code. Pass a constant from the
305
 
        Request class.
306
 
        """
307
 
        raise ivle.util.IVLEError(httpcode, message)
308
 
 
309
299
    def throw_redirect(self, location):
310
300
        """Writes out an HTTP redirect to the specified URL. Raises an
311
301
        exception which is caught by the dispatch or web server, so any