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 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 Details

    • getPort

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