Class NetException.PortException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.net.NetException
org.refcodes.net.NetException.PortException
All Implemented Interfaces:
Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, org.refcodes.mixin.PortAccessor
Direct Known Subclasses:
PortAlreadyBoundException
Enclosing class:
NetException

protected abstract static class NetException.PortException extends NetException implements org.refcodes.mixin.PortAccessor
Base exception for port related problems.
See Also:
  • Field Details

    • _port

      protected int _port
  • Constructor Details

    • PortException

      public PortException(String aMessage, int aPort, String aErrorCode)
      Parameters:
      aPort - The port in question.
    • PortException

      public PortException(String aMessage, int aPort, Throwable aCause, String aErrorCode)
      Parameters:
      aPort - The port in question.
    • PortException

      public PortException(String aMessage, int aPort, Throwable aCause)
      Parameters:
      aPort - The port in question.
    • PortException

      public PortException(String aMessage, int aPort)
      Parameters:
      aPort - The port in question.
    • PortException

      public PortException(int aPort, Throwable aCause, String aErrorCode)
      Parameters:
      aPort - The port in question.
    • PortException

      public PortException(int aPort, Throwable aCause)
      Parameters:
      aPort - The port in question.
  • Method Details

    • getPort

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

      public Object[] getPatternArguments()
      Specified by:
      getPatternArguments in interface org.refcodes.exception.Trap