Package org.mockserver.netty.dns
Class DnsStartupException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mockserver.netty.dns.DnsStartupException
- All Implemented Interfaces:
Serializable
Thrown at start-up when
dnsEnabled is true and the DNS server could not be started on dnsPort,
so that MockServer does not run without a listener 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:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DnsStartupExceptionportCouldNotBeOpenedOrBound(int dnsPort, Throwable cause) The channel for an explicitdnsPortcould not be created, registered or bound; a bind the operating system refused is the usual case.static DnsStartupExceptionserverCouldNotStart(int dnsPort, Throwable cause) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
portCouldNotBeOpenedOrBound
The channel for an explicitdnsPortcould not be created, registered or bound; a bind the operating system refused is the usual case. That is told by where the start failed, not by the type ofcause: for a refused bind the NIO transport reports aBindException, the epoll transport anIOExceptionof its own. -
serverCouldNotStart
-