Class PortAlreadyBoundRuntimeException

  • All Implemented Interfaces:
    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:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor

        org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeProperty
      • Nested classes/interfaces inherited from interface org.refcodes.mixin.PortAccessor

        org.refcodes.mixin.PortAccessor.PortBuilder<B extends org.refcodes.mixin.PortAccessor.PortBuilder<B>>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortProperty
    • Constructor Summary

      Constructors 
      Constructor Description
      PortAlreadyBoundRuntimeException​(int aPort, java.lang.String message)
      Instantiates a new port already bound runtime exception.
      PortAlreadyBoundRuntimeException​(int aPort, java.lang.String aMessage, java.lang.String aErrorCode)
      Instantiates a new port already bound runtime exception.
      PortAlreadyBoundRuntimeException​(int aPort, java.lang.String message, java.lang.Throwable cause)
      Instantiates a new port already bound runtime exception.
      PortAlreadyBoundRuntimeException​(int aPort, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
      Instantiates a new port already bound runtime exception.
      PortAlreadyBoundRuntimeException​(int aPort, java.lang.Throwable cause)
      Instantiates a new port already bound runtime exception.
      PortAlreadyBoundRuntimeException​(int aPort, java.lang.Throwable aCause, java.lang.String aErrorCode)
      Instantiates a new port already bound runtime exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getPort​()
      • Methods inherited from class org.refcodes.exception.AbstractRuntimeException

        getErrorCode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    • Constructor Detail

      • PortAlreadyBoundRuntimeException

        public PortAlreadyBoundRuntimeException​(int aPort,
                                                java.lang.String aMessage,
                                                java.lang.String aErrorCode)
        Instantiates a new port already bound runtime exception.
        Parameters:
        aPort - the port
        aMessage - the message
        aErrorCode - the error code
      • PortAlreadyBoundRuntimeException

        public PortAlreadyBoundRuntimeException​(int aPort,
                                                java.lang.String aMessage,
                                                java.lang.Throwable aCause,
                                                java.lang.String aErrorCode)
        Instantiates a new port already bound runtime exception.
        Parameters:
        aPort - the port
        aMessage - the message
        aCause - the cause
        aErrorCode - the error code
      • PortAlreadyBoundRuntimeException

        public PortAlreadyBoundRuntimeException​(int aPort,
                                                java.lang.String message,
                                                java.lang.Throwable cause)
        Instantiates a new port already bound runtime exception.
        Parameters:
        aPort - the port
        message - the message
        cause - the cause
      • PortAlreadyBoundRuntimeException

        public PortAlreadyBoundRuntimeException​(int aPort,
                                                java.lang.String message)
        Instantiates a new port already bound runtime exception.
        Parameters:
        aPort - the port
        message - the message
      • PortAlreadyBoundRuntimeException

        public PortAlreadyBoundRuntimeException​(int aPort,
                                                java.lang.Throwable aCause,
                                                java.lang.String aErrorCode)
        Instantiates a new port already bound runtime exception.
        Parameters:
        aPort - the port
        aCause - the cause
        aErrorCode - the error code
      • PortAlreadyBoundRuntimeException

        public PortAlreadyBoundRuntimeException​(int aPort,
                                                java.lang.Throwable cause)
        Instantiates a new port already bound runtime exception.
        Parameters:
        aPort - the port
        cause - the cause
    • Method Detail

      • getPort

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