462463464465466467468
/** * Send a 500 Error response * @param reason The reason */ protected static void error(String reason) { throw new Error(reason); }
471472473474475476477
* Send a 500 Error response * @param reason The reason */ protected static void error(Exception reason) { Logger.error(reason, "error()"); throw new Error(reason.toString()); }
478479480481482483484
/** * Send a 500 Error response */ protected static void error() { throw new Error("Internal Error"); }
468469470471472473474
* Send a 5xx Error response * @param status The exact status code * @param reason The reason */ protected static void error(int status, String reason) { throw new Error(status, reason); }
476477478479480481482
485486487488489490491
492493494495496497498