View Javadoc
1   package com.nilhcem.fakesmtp.core.exception;
2   
3   import java.net.UnknownHostException;
4   
5   /**
6    * Thrown if the host name is invalid while trying to start the server.
7    * <p>
8    * This is a wrapper for UnknownHostException
9    * </p>
10   *
11   * @author Vest
12   * @since 2.1
13   */
14  public class InvalidHostException extends Exception {
15  
16  	private static final long serialVersionUID = -8263018939961075449L;
17  	private final String host;
18  
19  	public InvalidHostException(UnknownHostException e, String host) {
20  		setStackTrace(e.getStackTrace());
21  		this.host = host;
22  	}
23  
24  	public String getHost() {
25  		return host;
26  	}
27  }