001/*
002 * This file is part of the JDrupes non-blocking HTTP Codec
003 * Copyright (C) 2016, 2017  Michael N. Lipp
004 *
005 * This program is free software; you can redistribute it and/or modify it 
006 * under the terms of the GNU Lesser General Public License as published
007 * by the Free Software Foundation; either version 3 of the License, or 
008 * (at your option) any later version.
009 *
010 * This program is distributed in the hope that it will be useful, but 
011 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
012 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 
013 * License for more details.
014 *
015 * You should have received a copy of the GNU Lesser General Public License along 
016 * with this program; if not, see <http://www.gnu.org/licenses/>.
017 */
018
019package org.jdrupes.httpcodec;
020
021/**
022 * Represents the base class of all exceptions thrown due to protocol
023 * violations.
024 */
025public class ProtocolException extends Exception {
026
027        private static final long serialVersionUID = 1L;
028
029        /**
030         * 
031         */
032        public ProtocolException() {
033        }
034
035        /**
036         * @param message the message
037         */
038        public ProtocolException(String message) {
039                super(message);
040        }
041
042        /**
043         * @param cause the cause
044         */
045        public ProtocolException(Throwable cause) {
046                super(cause);
047        }
048
049        /**
050         * @param message the message
051         * @param cause the cause
052         */
053        public ProtocolException(String message, Throwable cause) {
054                super(message, cause);
055        }
056
057        /**
058         * @param message the message
059         * @param cause the cause
060         * @param enableSuppression whether to enable suppression
061         * @param writableStackTrace whether the stack trace is writable
062         */
063        public ProtocolException(String message, Throwable cause,
064                boolean enableSuppression, boolean writableStackTrace) {
065                super(message, cause, enableSuppression, writableStackTrace);
066        }
067
068}