summaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
authorEdoardo La Greca2025-08-07 20:11:32 +0200
committerEdoardo La Greca2025-08-07 20:11:32 +0200
commite9d188ba3a53a815a50e8302e6282862406405d7 (patch)
tree69cb49b32cd5a2da673d1d08caa60bf6d3024e0c /src/main/kotlin
parenteedbc01c3b7f1bfef1ccc341574278e0289879ae (diff)
move UnresolvableHostException to except package
Diffstat (limited to 'src/main/kotlin')
-rw-r--r--src/main/kotlin/Connection.kt2
-rw-r--r--src/main/kotlin/TransportLayer.kt6
-rw-r--r--src/main/kotlin/except/UnresolvableHostException.kt (renamed from src/main/kotlin/UnresolvableHostException.kt)2
3 files changed, 6 insertions, 4 deletions
diff --git a/src/main/kotlin/Connection.kt b/src/main/kotlin/Connection.kt
index 911cb93..cde7863 100644
--- a/src/main/kotlin/Connection.kt
+++ b/src/main/kotlin/Connection.kt
@@ -15,7 +15,7 @@ import java.math.BigInteger
*
* @param transLay The networking API backend of choice.
*
- * @throws UnresolvableHostException if the host resolution made by [transLay] failed.
+ * @throws except.UnresolvableHostException if the host resolution made by [transLay] failed.
*/
class Connection(transLay: TransportLayer) : ProtocolTranslator {
/**
diff --git a/src/main/kotlin/TransportLayer.kt b/src/main/kotlin/TransportLayer.kt
index 8778592..bdfc04e 100644
--- a/src/main/kotlin/TransportLayer.kt
+++ b/src/main/kotlin/TransportLayer.kt
@@ -6,9 +6,9 @@ import java.io.Closeable
* to send and receive network messages (also called "payloads").
*
* The address of the remote endpoint can be an IP address (v4 or v6) or a domain name, in which case it is resolved to
- * an IP address right before initializing the connection. Every constructor should throw an [UnresolvableHostException]
- * if the remote address is formatted as an actual domain name, but it cannot be resolved (e.g. it doesn't exist, or it
- * contains forbidden characters).
+ * an IP address right before initializing the connection. Every constructor should throw an
+ * [except.UnresolvableHostException] if the remote address is formatted as an actual domain name, but it cannot be
+ * resolved (e.g. it doesn't exist, or it contains forbidden characters).
*
* Depending on the specific given implementation, the constructor of this class might throw other exceptions (e.g. the
* [java.net.Socket] constructor in [TransportLayerJavaNet]).
diff --git a/src/main/kotlin/UnresolvableHostException.kt b/src/main/kotlin/except/UnresolvableHostException.kt
index 2a0624e..19dd3b6 100644
--- a/src/main/kotlin/UnresolvableHostException.kt
+++ b/src/main/kotlin/except/UnresolvableHostException.kt
@@ -1,3 +1,5 @@
+package except
+
/**
* The specified domain, which identifies the host's address, could not be resolved.
*