Class NetRuntimeException.PortRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.refcodes.exception.AbstractRuntimeException
org.refcodes.net.NetRuntimeException
org.refcodes.net.NetRuntimeException.PortRuntimeException
- All Implemented Interfaces:
Serializable,org.refcodes.exception.ErrorCodeAccessor,org.refcodes.exception.Trap,org.refcodes.mixin.PortAccessor
- Direct Known Subclasses:
PortAlreadyBoundRuntimeException
- Enclosing class:
NetRuntimeException
protected abstract static class NetRuntimeException.PortRuntimeException
extends NetRuntimeException
implements org.refcodes.mixin.PortAccessor
Base runtime exception for port related problems.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.refcodes.net.NetRuntimeException
NetRuntimeException.PortRuntimeExceptionNested 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.ErrorCodePropertyNested 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 -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPortRuntimeException(int aPort, Throwable aCause) PortRuntimeException(int aPort, Throwable aCause, String aErrorCode) PortRuntimeException(String aMessage, int aPort) PortRuntimeException(String aMessage, int aPort, String aErrorCode) PortRuntimeException(String aMessage, int aPort, Throwable aCause) PortRuntimeException(String aMessage, int aPort, Throwable aCause, String aErrorCode) -
Method Summary
Methods inherited from class org.refcodes.exception.AbstractRuntimeException
getErrorCode, getMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.refcodes.exception.Trap
toLocalizedMessage, toMessage, toMessage, toMessage, toShortLocalizedMessage, toShortMessage
-
Field Details
-
_port
protected int _port
-
-
Constructor Details
-
PortRuntimeException
-
PortRuntimeException
-
PortRuntimeException
-
PortRuntimeException
- Parameters:
aPort- The port in question.
-
PortRuntimeException
-
PortRuntimeException
- Parameters:
aPort- The port in question.
-
-
Method Details
-
getPort
public int getPort()- Specified by:
getPortin interfaceorg.refcodes.mixin.PortAccessor
-
getPatternArguments
- Specified by:
getPatternArgumentsin interfaceorg.refcodes.exception.Trap
-