java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.net.NetException
org.refcodes.net.PortNotFoundException
org.refcodes.net.PortAlreadyBoundException
- All Implemented Interfaces:
Serializable
,org.refcodes.exception.ErrorCodeAccessor
,org.refcodes.exception.Trap
,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:
-
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
ConstructorDescriptionPortAlreadyBoundException
(int aPort, String message) Instantiates a new port already bound exception.PortAlreadyBoundException
(int aPort, String aMessage, String aErrorCode) Instantiates a new port already bound exception.PortAlreadyBoundException
(int aPort, String message, Throwable cause) Instantiates a new port already bound exception.PortAlreadyBoundException
(int aPort, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new port already bound exception.PortAlreadyBoundException
(int aPort, Throwable cause) Instantiates a new port already bound exception.PortAlreadyBoundException
(int aPort, Throwable aCause, String aErrorCode) Instantiates a new port already bound exception. -
Method Summary
Methods inherited from class org.refcodes.exception.AbstractException
getErrorCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PortAlreadyBoundException
Instantiates a new port already bound exception.- Parameters:
aPort
- the portaMessage
- the messageaErrorCode
- the error code
-
PortAlreadyBoundException
Instantiates a new port already bound exception.- Parameters:
aPort
- the portaMessage
- the messageaCause
- the causeaErrorCode
- the error code
-
PortAlreadyBoundException
Instantiates a new port already bound exception.- Parameters:
aPort
- the portmessage
- the messagecause
- the cause
-
PortAlreadyBoundException
Instantiates a new port already bound exception.- Parameters:
aPort
- the portmessage
- the message
-
PortAlreadyBoundException
Instantiates a new port already bound exception.- Parameters:
aPort
- the portaCause
- the causeaErrorCode
- the error code
-
PortAlreadyBoundException
Instantiates a new port already bound exception.- Parameters:
aPort
- the portcause
- the cause
-
-
Method Details
-
getPort
public int getPort()- Specified by:
getPort
in interfaceorg.refcodes.mixin.PortAccessor
-