Signals that an error occurred while attempting to bind a
socket to a local address and port. Typically, the port is
in use, or the requested local address could not be assigned.
Returns an array containing all of the exceptions that were
suppressed, typically by the try-with-resources
statement, in order to deliver this exception.
Constructs a new BindException with the specified detail
message as to why the bind error occurred.
A detail message is a String that gives a specific
description of this error.
Parameters
msg
the detail message
public
BindException()
Construct a new BindException with no detailed message.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[],["`BindException` signals errors when binding a socket to a local address and port, often due to the port being in use or the address being unassignable. It extends `SocketException` and can be created with or without a detailed error message. It inherits methods from `Throwable` like `getMessage`, `printStackTrace`, and `getCause`, for managing error details. It also inherit methods from `Object` like `toString`, `equals`, `notify` and `wait` to manage the object.\n"]]