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; 017 018/** 019 * This exception is thrown when a network error occured while communicating with the 020 * server. 021 */ 022public class AcmeNetworkException extends AcmeException { 023 private static final long serialVersionUID = 2054398693543329179L; 024 025 /** 026 * Create a new {@link AcmeNetworkException}. 027 * 028 * @param cause 029 * {@link IOException} that caused the network error 030 */ 031 public AcmeNetworkException(IOException cause) { 032 super("Network error", cause); 033 } 034 035}