package org.http4s.blaze.http_parser;


/**
 * @author Bryce Anderson
 *         Created on 1/2/14
 */
public class BaseExceptions {

    static abstract class ParserException extends Exception {

        public ParserException(String msg) {
            super(msg);
        }

        public final String msg() {
            return this.getMessage();
        }

        // We will be using this for
        @Override
        public synchronized Throwable fillInStackTrace() {
            return this;
        }
    }

    public static class BadRequest extends ParserException {
        public BadRequest(String msg) {
            super(msg);
        }
    }

    public static class BadResponse extends ParserException {
        public BadResponse(String msg) {
            super(msg);
        }
    }

    public static class InvalidState extends ParserException {
        public InvalidState(String msg) {
            super(msg);
        }
    }
}

@@ -131,16 +131,23 @@
  %7B%0A%0A    
+public 
 static a

make parser base exception public