Forgot to save this file before last check-in

This commit is contained in:
Kelven Yang 2011-07-11 16:52:45 -07:00
parent 0fa8b65cde
commit 6bea2f7c2b
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ public class ConsoleProxyAjaxImageHandler implements HttpHandler {
} catch (IllegalArgumentException e) {
s_logger.warn("Exception, ", e);
t.sendResponseHeaders(400, -1); // bad request
} catch(OutOfMemoryError e) {
s_logger.error("Unrecoverable OutOfMemory Error, exit and let it be re-launched");
System.exit(1);
} catch(Throwable e) {
s_logger.error("Unexpected exception, ", e);
t.sendResponseHeaders(500, -1); // server error