Stay organized with collections
Save and categorize content based on your preferences.
PortUnreachableException
open class PortUnreachableException : SocketException
Signals that an ICMP Port Unreachable message has been received on a connected datagram.
Summary
Public constructors |
Construct a new PortUnreachableException with no detailed message.
|
Constructs a new PortUnreachableException with a detail message.
|
Public constructors
PortUnreachableException
PortUnreachableException()
Construct a new PortUnreachableException
with no detailed message.
PortUnreachableException
PortUnreachableException(msg: String!)
Constructs a new PortUnreachableException
with a detail message.
Parameters |
msg |
String!: the detail message |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# PortUnreachableException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPortUnreachableException\n========================\n\n```\nopen class PortUnreachableException : SocketException\n```\n\n|---|---|---|---|---|----------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) |||||\n| | ↳ | [java.lang.Exception](../lang/Exception.html#) ||||\n| | | ↳ | [java.io.IOException](../io/IOException.html#) |||\n| | | | ↳ | [java.net.SocketException](/reference/kotlin/java/net/SocketException) ||\n| | | | | ↳ | [java.net.PortUnreachableException](#) |\n\nSignals that an ICMP Port Unreachable message has been received on a connected datagram.\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [PortUnreachableException](#PortUnreachableException())`()` Construct a new `PortUnreachableException` with no detailed message. |\n| [PortUnreachableException](#PortUnreachableException(kotlin.String))`(`msg:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a new `PortUnreachableException` with a detail message. |\n\nPublic constructors\n-------------------\n\n### PortUnreachableException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nPortUnreachableException()\n```\n\nConstruct a new `PortUnreachableException` with no detailed message. \n\n### PortUnreachableException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nPortUnreachableException(msg: String!)\n```\n\nConstructs a new `PortUnreachableException` with a detail message.\n\n| Parameters ||\n|-------|-------------------------------------------------------------------------------------------------------|\n| `msg` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message |"]]