Class OutOfRangePortException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.nilhcem.fakesmtp.core.exception.OutOfRangePortException
All Implemented Interfaces:
Serializable

public final class OutOfRangePortException extends Exception
Thrown if the SMTP port is out of range while trying to start the server.
Since:
1.0
Author:
Nilhcem
See Also:
  • Constructor Details

    • OutOfRangePortException

      public OutOfRangePortException(Exception e, int port)
  • 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.