Class Http3StartupException

All Implemented Interfaces:
Serializable

public class Http3StartupException extends RuntimeException
Thrown at start-up when http3Port is set and the HTTP/3 server could not be started on it, so that MockServer does not run without a protocol it was configured to serve. The message is one line naming the port and the root cause. It is not an IllegalArgumentException, whatever its cause: the CLI treats that as a usage error and exits 0.
See Also:
  • Constructor Details

    • Http3StartupException

      public Http3StartupException(int http3Port, Throwable cause)
  • Method Details

    • isPortUnavailable

      public boolean isPortUnavailable()
      Returns:
      true if the UDP port could not be bound, which the message alone explains