482483484485486487488
* * @param status The exact status code * @param reason The reason */ protected static void error(int status, String reason) { throw new Error(status, reason); }
491492493494495496497
* Send a 500 Error response * * @param reason The reason */ protected static void error(String reason) { throw new Error(reason); }
501502503504505506507
* * @param reason The reason */ protected static void error(Exception reason) { Logger.error(reason, "error()"); throw new Error(reason.toString()); }
508509510511512513514
/** * Send a 500 Error response */ protected static void error() { throw new Error("Internal Error"); }