1 package com.atlassian.httpclient.api;
2
3 import java.net.UnknownHostException;
4
5 /**
6 * This is to be thrown when a host has been blacklisted by IP and a connection should not be attempted.
7 *
8 * It extends {@link UnknownHostException} due to the semantics around where it must be thrown. It is utilised in the
9 * {@link HostResolver} which can only throw an UnknownHostException.
10 */
11 public class BannedHostException extends UnknownHostException {
12
13 public BannedHostException(String desc) {
14 super(desc);
15 }
16 }