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
016import java.io.IOException;
017import java.io.Serial;
018
019/**
020 * A general network error has occured while communicating with the server (e.g. network
021 * timeout).
022 */
023public class AcmeNetworkException extends AcmeException {
024    @Serial
025    private static final long serialVersionUID = 2054398693543329179L;
026
027    /**
028     * Create a new {@link AcmeNetworkException}.
029     *
030     * @param cause
031     *            {@link IOException} that caused the network error
032     */
033    public AcmeNetworkException(IOException cause) {
034        super("Network error", cause);
035    }
036
037}