public class PortInUseException extends WebServerException
PortInUseException
is thrown when a web server fails to start due to a port
already being in use.Constructor and Description |
---|
PortInUseException(int port)
Creates a new port in use exception for the given
port . |
Modifier and Type | Method and Description |
---|---|
int |
getPort()
Returns the port that was in use.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString