Class NetException.PortException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.net.NetException
org.refcodes.net.NetException.PortException
- All Implemented Interfaces:
Serializable, ErrorCodeAccessor, Trap, PortAccessor
- Direct Known Subclasses:
PortAlreadyBoundException
- Enclosing class:
NetException
protected abstract static class NetException.PortException
extends NetException
implements PortAccessor
Base exception for port related problems.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class NetException
NetException.PortExceptionNested classes/interfaces inherited from interface ErrorCodeAccessor
ErrorCodeAccessor.ErrorCodeBuilder<B>, ErrorCodeAccessor.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodePropertyNested classes/interfaces inherited from interface PortAccessor
PortAccessor.PortBuilder<B>, PortAccessor.PortMutator, PortAccessor.PortProperty -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPortException(int aPort, String aMessage) PortException(int aPort, String aMessage, String aErrorCode) PortException(int aPort, String aMessage, Throwable aCause) PortException(int aPort, String aMessage, Throwable aCause, String aErrorCode) PortException(int aPort, Throwable aCause) PortException(int aPort, Throwable aCause, String aErrorCode) -
Method Summary
Methods inherited from class AbstractException
getErrorCode, getMessageMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Trap
toLocalizedMessage, toMessage, toMessage, toMessage, toShortLocalizedMessage, toShortMessage
-
Field Details
-
_port
protected int _port
-
-
Constructor Details
-
PortException
-
PortException
-
PortException
-
PortException
- Parameters:
aPort- The port in question.- See Also:
-
PortException
-
PortException
- Parameters:
aPort- The port in question.- See Also:
-
-
Method Details
-
getPort
public int getPort()- Specified by:
getPortin interfacePortAccessor
-
getPatternArguments
- Specified by:
getPatternArgumentsin interfaceTrap
-