package com.bradmcevoy.http.exceptions;

import com.bradmcevoy.http.Resource;

/**
 *
 * @author brad
 */
public class BadRequestException extends MiltonException {
    private static final long serialVersionUID = 1L;

    public BadRequestException(Resource r) {
        super(r);
    }

}

@@ -212,16 +212,50 @@
  = 1L;%0A%0A
+    private final String reason;%0A%0A
     publ
@@ -313,13 +313,319 @@
 r);%0A    
-%7D
+    this.reason = null;%0A    %7D%0A%0A    public BadRequestException(Resource r, String reason) %7B%0A        super(r);%0A        this.reason = reason;%0A    %7D%0A%0A    /**%0A     * Optional property, which describe the cause of the exception%0A     * @return%0A     */%0A    public String getReason() %7B%0A        return reason;%0A    %7D%0A%0A
 %0A%0A%7D%0A

add reason, for use in some response handlers