PortInUseException

A PortInUseException is thrown when a web server fails to start due to a port already being in use.

Author

Andy Wilkinson

Phillip Webb

Since

2.0.0

Constructors

Link copied to clipboard
constructor(port: Int)
Creates a new port in use exception for the given port.
constructor(port: Int, cause: Throwable)
Creates a new port in use exception for the given port.

Properties

Link copied to clipboard
open val cause: Throwable
Link copied to clipboard
val port: Int
Link copied to clipboard

Functions

Link copied to clipboard
fun addSuppressed(exception: Throwable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getMessage(): String
Link copied to clipboard
Link copied to clipboard
open fun <E : Exception?> ifCausedBy(ex: Exception, causedBy: Class<E>, action: Consumer<E>)
Perform an action if the given exception was caused by a specific exception type.
Link copied to clipboard
Perform an action if the given exception was caused by a "port in use" BindException.
Link copied to clipboard
open fun initCause(cause: Throwable): Throwable
Link copied to clipboard
open fun printStackTrace()
Link copied to clipboard
Throw a PortInUseException if the given exception was caused by a "port in use" BindException.
Link copied to clipboard
open fun toString(): String