Skip to content

Commit

Permalink
chore: additional exception kdoc in url extension function
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFruxz committed Mar 18, 2024
1 parent 68c7122 commit efa7c5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/dev/fruxz/ascend/extension/data/URL.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ import java.net.URL
* @param url The string representing the URL.
* @return A `URL` object representing the specified URL string.
* @throws URISyntaxException If the URL string violates syntax rules.
* @throws MalformedURLException If a protocol handler for the URL could not be found, or if some other error occurred while constructing the
* @throws MalformedURLException If a protocol handler for the URL could not be found, or if some other error occurred while constructing the URL
* @throws IllegalArgumentException If the given URL is not absolute.
*/
@Throws(URISyntaxException::class, MalformedURLException::class)
@Throws(URISyntaxException::class, MalformedURLException::class, IllegalArgumentException::class)
fun url(@Language("url") url: String): URL = uri(url).toURL() // create URL(...) is deprecated since Java 20

/**
Expand Down

0 comments on commit efa7c5f

Please sign in to comment.