All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4s.blaze.http_parser.BaseExceptions Maven / Gradle / Ivy

package org.http4s.blaze.http_parser;


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

    public 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);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy