Class NetRuntimeException.PortRuntimeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.refcodes.exception.AbstractRuntimeException
org.refcodes.net.NetRuntimeException
org.refcodes.net.NetRuntimeException.PortRuntimeException
All Implemented Interfaces:
Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, org.refcodes.mixin.PortAccessor
Direct Known Subclasses:
PortAlreadyBoundRuntimeException
Enclosing class:
NetRuntimeException

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

    • _port

      protected int _port
  • Constructor Details

    • PortRuntimeException

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

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

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

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

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

      public PortRuntimeException(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