001/*
002 * acme4j - Java ACME client
003 *
004 * Copyright (C) 2016 Richard "Shred" Körber
005 *   http://acme4j.shredzone.org
006 *
007 * Licensed under the Apache License, Version 2.0 (the "License");
008 * you may not use this file except in compliance with the License.
009 *
010 * This program is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
013 */
014package org.shredzone.acme4j.exception;
015
016/**
017 * A runtime exception that is thrown when the response of the server is violating the
018 * RFC, and could not be handled or parsed for that reason. It is an indicator that the CA
019 * does not fully comply with the RFC, and is usually not expected to be thrown.
020 */
021public class AcmeProtocolException extends RuntimeException {
022    private static final long serialVersionUID = 2031203835755725193L;
023
024    /**
025     * Creates a new {@link AcmeProtocolException}.
026     *
027     * @param msg
028     *            Reason of the exception
029     */
030    public AcmeProtocolException(String msg) {
031        super(msg);
032    }
033
034    /**
035     * Creates a new {@link AcmeProtocolException}.
036     *
037     * @param msg
038     *            Reason of the exception
039     * @param cause
040     *            Cause
041     */
042    public AcmeProtocolException(String msg, Throwable cause) {
043        super(msg, cause);
044    }
045
046}