java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.refcodes.exception.AbstractRuntimeException
org.refcodes.net.NetRuntimeException
org.refcodes.net.PortNotFoundRuntimeException
org.refcodes.net.PortAlreadyBoundRuntimeException
- All Implemented Interfaces:
Serializable
,org.refcodes.exception.ErrorCodeAccessor
,org.refcodes.exception.Trap
,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:
-
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
ConstructorDescriptionPortAlreadyBoundRuntimeException
(int aPort, String aMessage) Instantiates a new port already bound runtime exception.PortAlreadyBoundRuntimeException
(int aPort, String aMessage, String aErrorCode) Instantiates a new port already bound runtime exception.PortAlreadyBoundRuntimeException
(int aPort, String aMessage, Throwable aCause) Instantiates a new port already bound runtime exception.PortAlreadyBoundRuntimeException
(int aPort, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new port already bound runtime exception.PortAlreadyBoundRuntimeException
(int aPort, Throwable aCause) Instantiates a new port already bound runtime exception.PortAlreadyBoundRuntimeException
(int aPort, Throwable aCause, String aErrorCode) Instantiates a new port already bound runtime exception. -
Method Summary
Methods inherited from class org.refcodes.exception.AbstractRuntimeException
getErrorCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PortAlreadyBoundRuntimeException
Instantiates a new port already bound runtime exception.- Parameters:
aPort
- the portaMessage
- The aMessage describing this exception.aErrorCode
- The error code identifying this exception.
-
PortAlreadyBoundRuntimeException
public PortAlreadyBoundRuntimeException(int aPort, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new port already bound runtime exception. -
PortAlreadyBoundRuntimeException
Instantiates a new port already bound runtime exception. -
PortAlreadyBoundRuntimeException
Instantiates a new port already bound runtime exception.- Parameters:
aPort
- the portaMessage
- The aMessage describing this exception.
-
PortAlreadyBoundRuntimeException
Instantiates a new port already bound runtime exception. -
PortAlreadyBoundRuntimeException
Instantiates a new port already bound runtime exception.
-
-
Method Details
-
getPort
public int getPort()- Specified by:
getPort
in interfaceorg.refcodes.mixin.PortAccessor
-