Class PortAlreadyBoundRuntimeException

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

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

      • PortAlreadyBoundRuntimeException

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

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

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

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

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

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

      • getPort

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