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. |
PortInUseException(int port,
Throwable cause)
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, toStringpublic PortInUseException(int port)
port.port - the port that was in usepublic PortInUseException(int port,
Throwable cause)
port.port - the port that was in usecause - the cause of the exceptionCopyright © 2020 Pivotal Software, Inc.. All rights reserved.