Class OutOfRangePortException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.nilhcem.fakesmtp.core.exception.OutOfRangePortException
- All Implemented Interfaces:
Serializable
Thrown if the SMTP port is out of range while trying to start the server.
- Since:
- 1.0
- Author:
- Nilhcem
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OutOfRangePortException
-
-
Method Details
-
getPort
public int getPort()Returns the port entered by the user.Useful to know why the SMTP server could not start.
- Returns:
- the port which caused the exception.
-