Class PortAlreadyBoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.net.NetException
org.refcodes.net.PortNotFoundException
org.refcodes.net.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:
  • Constructor Details

    • PortAlreadyBoundException

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

      public PortAlreadyBoundException(int aPort, String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new port already bound 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.
    • PortAlreadyBoundException

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

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

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

      public PortAlreadyBoundException(int aPort, Throwable aCause)
      Instantiates a new port already bound 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