Package yalp.mvc.results

Examples of yalp.mvc.results.Error


     *
     * @param status The exact status code
     * @param reason The reason
     */
    protected static void error(int status, String reason) {
        throw new Error(status, reason);
    }
View Full Code Here


     * Send a 500 Error response
     *
     * @param reason The reason
     */
    protected static void error(String reason) {
        throw new Error(reason);
    }
View Full Code Here

     *
     * @param reason The reason
     */
    protected static void error(Exception reason) {
        Logger.error(reason, "error()");
        throw new Error(reason.toString());
    }
View Full Code Here

    /**
     * Send a 500 Error response
     */
    protected static void error() {
        throw new Error("Internal Error");
    }
View Full Code Here

TOP

Related Classes of yalp.mvc.results.Error

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.