View Javadoc

1   package net.sf.josceleton.connection.impl.osc;
2   
3   import net.sf.josceleton.commons.exception.JosceletonException;
4   
5   public class OscPortOpeningException extends JosceletonException {
6   	
7   	private final int port;
8   	
9   	protected OscPortOpeningException(final int port, final String message, final Throwable cause) {
10  		super(message, cause);
11  		this.port = port;
12  	}
13  
14  	private static final long serialVersionUID = 2204544045569273955L;
15  	
16  	public static OscPortOpeningException newByPort(final int port, final Throwable cause) {
17  		return new OscPortOpeningException(port, "Could not create OSCPortIn with port number [" + port + "]!", cause);
18  	}
19  
20  	public final int getPort() {
21  		return this.port;
22  	}
23  	
24  }