public class PortAlreadyBoundRuntimeException extends PortNotFoundRuntimeException implements PortAccessor
getPort()
is already in use.PortAccessor.PortBuilder<B extends PortAccessor.PortBuilder<B>>, PortAccessor.PortMutator, PortAccessor.PortProperty
org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeProperty
Constructor and Description |
---|
PortAlreadyBoundRuntimeException(int aPort,
String message)
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 message,
Throwable cause)
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 cause)
Instantiates a new port already bound runtime exception.
|
PortAlreadyBoundRuntimeException(int aPort,
Throwable aCause,
String aErrorCode)
Instantiates a new port already bound runtime exception.
|
Modifier and Type | Method and Description |
---|---|
int |
getPort()
Retrieves the port from the port property.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PortAlreadyBoundRuntimeException(int aPort, String aMessage, String aErrorCode)
aPort
- the a portaMessage
- the a messageaErrorCode
- the a error codepublic PortAlreadyBoundRuntimeException(int aPort, String aMessage, Throwable aCause, String aErrorCode)
aPort
- the a portaMessage
- the a messageaCause
- the a causeaErrorCode
- the a error codepublic PortAlreadyBoundRuntimeException(int aPort, String message, Throwable cause)
aPort
- the a portmessage
- the messagecause
- the causepublic PortAlreadyBoundRuntimeException(int aPort, String message)
aPort
- the a portmessage
- the messagepublic PortAlreadyBoundRuntimeException(int aPort, Throwable aCause, String aErrorCode)
aPort
- the a portaCause
- the a causeaErrorCode
- the a error codepublic PortAlreadyBoundRuntimeException(int aPort, Throwable cause)
aPort
- the a portcause
- the causepublic int getPort()
getPort
in interface PortAccessor
Copyright © 2017. All rights reserved.