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 * This runtime exception is thrown on ACME protocol errors that should not occur. For
018 * example, this exception is thrown when a server response could not be parsed.
019 */
020public class AcmeProtocolException extends RuntimeException {
021    private static final long serialVersionUID = 2031203835755725193L;
022
023    /**
024     * Creates a new {@link AcmeProtocolException}.
025     *
026     * @param msg
027     *            Reason of the exception
028     */
029    public AcmeProtocolException(String msg) {
030        super(msg);
031    }
032
033    /**
034     * Creates a new {@link AcmeProtocolException}.
035     *
036     * @param msg
037     *            Reason of the exception
038     * @param cause
039     *            Cause
040     */
041    public AcmeProtocolException(String msg, Throwable cause) {
042        super(msg, cause);
043    }
044
045}