Class PortAlreadyBoundException

  • All Implemented Interfaces:
    Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, org.refcodes.mixin.PortAccessor

    public class PortAlreadyBoundException
    extends PortNotFoundException
    implements org.refcodes.mixin.PortAccessor
    Thrown in case the given port getPort() is already in use.
    See Also:
    Serialized Form
    • Constructor Detail

      • PortAlreadyBoundException

        public PortAlreadyBoundException​(int aPort,
                                         String aMessage,
                                         String aErrorCode)
        Instantiates a new port already bound exception.
        Parameters:
        aPort - the port
        aMessage - the message
        aErrorCode - the error code
      • PortAlreadyBoundException

        public PortAlreadyBoundException​(int aPort,
                                         String aMessage,
                                         Throwable aCause,
                                         String aErrorCode)
        Instantiates a new port already bound exception.
        Parameters:
        aPort - the port
        aMessage - the message
        aCause - the cause
        aErrorCode - the error code
      • PortAlreadyBoundException

        public PortAlreadyBoundException​(int aPort,
                                         String message,
                                         Throwable cause)
        Instantiates a new port already bound exception.
        Parameters:
        aPort - the port
        message - the message
        cause - the cause
      • PortAlreadyBoundException

        public PortAlreadyBoundException​(int aPort,
                                         String message)
        Instantiates a new port already bound exception.
        Parameters:
        aPort - the port
        message - the message
      • PortAlreadyBoundException

        public PortAlreadyBoundException​(int aPort,
                                         Throwable aCause,
                                         String aErrorCode)
        Instantiates a new port already bound exception.
        Parameters:
        aPort - the port
        aCause - the cause
        aErrorCode - the error code
      • PortAlreadyBoundException

        public PortAlreadyBoundException​(int aPort,
                                         Throwable cause)
        Instantiates a new port already bound exception.
        Parameters:
        aPort - the port
        cause - the cause
    • Method Detail

      • getPort

        public int getPort()
        Specified by:
        getPort in interface org.refcodes.mixin.PortAccessor