org.springframework.boot.web.server

Class PortInUseException

  • All Implemented Interfaces:
    Serializable


    public class PortInUseException
    extends WebServerException
    A PortInUseException is thrown when a web server fails to start due to a port already being in use.
    Since:
    2.0.0
    Author:
    Andy Wilkinson
    See Also:
    Serialized Form
    • Constructor Detail

      • PortInUseException

        public PortInUseException(int port)
        Creates a new port in use exception for the given port.
        Parameters:
        port - the port that was in use
    • Method Detail

      • getPort

        public int getPort()
        Returns the port that was in use.
        Returns:
        the port

Copyright © 2020 Pivotal Software, Inc.. All rights reserved.