001/*
002 * acme4j - Java ACME client
003 *
004 * Copyright (C) 2015 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
016import javax.annotation.ParametersAreNonnullByDefault;
017import javax.annotation.concurrent.Immutable;
018
019/**
020 * A generic ACME exception.
021 */
022@ParametersAreNonnullByDefault
023@Immutable
024public class AcmeException extends Exception {
025    private static final long serialVersionUID = -2935088954705632025L;
026
027    /**
028     * Creates a generic {@link AcmeException}.
029     */
030    public AcmeException() {
031        super();
032    }
033
034    /**
035     * Creates a generic {@link AcmeException}.
036     *
037     * @param msg
038     *            Description
039     */
040    public AcmeException(String msg) {
041        super(msg);
042    }
043
044    /**
045     * Creates a generic {@link AcmeException}.
046     *
047     * @param msg
048     *            Description
049     * @param cause
050     *            {@link Throwable} that caused this exception
051     */
052    public AcmeException(String msg, Throwable cause) {
053        super(msg, cause);
054    }
055
056}