Class PortAlreadyBoundException

  • All Implemented Interfaces:
    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:
    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
      PortAlreadyBoundException​(int aPort, java.lang.String message)
      Instantiates a new port already bound exception.
      PortAlreadyBoundException​(int aPort, java.lang.String aMessage, java.lang.String aErrorCode)
      Instantiates a new port already bound exception.
      PortAlreadyBoundException​(int aPort, java.lang.String message, java.lang.Throwable cause)
      Instantiates a new port already bound exception.
      PortAlreadyBoundException​(int aPort, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
      Instantiates a new port already bound exception.
      PortAlreadyBoundException​(int aPort, java.lang.Throwable cause)
      Instantiates a new port already bound exception.
      PortAlreadyBoundException​(int aPort, java.lang.Throwable aCause, java.lang.String aErrorCode)
      Instantiates a new port already bound exception.
    • Method Summary

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

        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

      • PortAlreadyBoundException

        public PortAlreadyBoundException​(int aPort,
                                         java.lang.String aMessage,
                                         java.lang.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,
                                         java.lang.String aMessage,
                                         java.lang.Throwable aCause,
                                         java.lang.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,
                                         java.lang.String message,
                                         java.lang.Throwable cause)
        Instantiates a new port already bound exception.
        Parameters:
        aPort - the port
        message - the message
        cause - the cause
      • PortAlreadyBoundException

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

        public PortAlreadyBoundException​(int aPort,
                                         java.lang.Throwable aCause,
                                         java.lang.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,
                                         java.lang.Throwable cause)
        Instantiates a new port already bound exception.
        Parameters:
        aPort - the port
        cause - the cause
    • Method Detail

      • getPort

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