Class ConnectorStartFailedException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.boot.web.server.WebServerException
- org.springframework.boot.web.embedded.tomcat.ConnectorStartFailedException
- All Implemented Interfaces:
Serializable
public class ConnectorStartFailedException extends WebServerException
AConnectorStartFailedException
is thrown when a TomcatConnector
fails to start, for example due to a port clash or incorrect SSL configuration.- Since:
- 2.0.0
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description ConnectorStartFailedException(int port)
Creates a newConnectorStartFailedException
for a connector that's configured to listen on the givenport
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPort()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Detail
ConnectorStartFailedException
public ConnectorStartFailedException(int port)
Creates a newConnectorStartFailedException
for a connector that's configured to listen on the givenport
.- Parameters:
port
- the port
Method Detail
getPort
public int getPort()