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:
  • Constructor Details

    • PortAlreadyBoundRuntimeException

      public PortAlreadyBoundRuntimeException(int aPort, String aMessage, String aErrorCode)
      Instantiates a new port already bound runtime exception.
      Parameters:
      aPort - the port
      aMessage - The aMessage describing this exception.
      aErrorCode - The error code identifying this exception.
    • 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 aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • PortAlreadyBoundRuntimeException

      public PortAlreadyBoundRuntimeException(int aPort, String aMessage, Throwable aCause)
      Instantiates a new port already bound runtime exception.
      Parameters:
      aPort - the port
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
    • PortAlreadyBoundRuntimeException

      public PortAlreadyBoundRuntimeException(int aPort, String aMessage)
      Instantiates a new port already bound runtime exception.
      Parameters:
      aPort - the port
      aMessage - The aMessage describing this exception.
    • PortAlreadyBoundRuntimeException

      public PortAlreadyBoundRuntimeException(int aPort, Throwable aCause, String aErrorCode)
      Instantiates a new port already bound runtime exception.
      Parameters:
      aPort - the port
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • PortAlreadyBoundRuntimeException

      public PortAlreadyBoundRuntimeException(int aPort, Throwable aCause)
      Instantiates a new port already bound runtime exception.
      Parameters:
      aPort - the port
      aCause - The Throwable (Exception) causing this exception.
  • Method Details

    • getPort

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