Skip to content

Commit

Permalink
fix: define IllegalArgumentException not InvalidArgumentException
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu committed Jan 30, 2025
1 parent d86ae0f commit f9a05d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/src/org/apache/cordova/CordovaResourceApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private String getMimeTypeFromPath(String path) {
* Opens a stream to the given URI, also providing the MIME type & length.
*
* @return Never returns null.
* @throws InvalidArgumentException For relative URIs. Relative URIs should be resolved before
* @throws IllegalArgumentException For relative URIs. Relative URIs should be resolved before
* being passed into this function.
* @throws IOException If the URI cannot be opened.
* @throws IllegalStateException If called on a foreground thread.
Expand All @@ -252,7 +252,7 @@ public OpenForReadResult openForRead(Uri uri) throws IOException {
* Opens a stream to the given URI, also providing the MIME type & length.
*
* @return Never returns null.
* @throws InvalidArgumentException For relative URIs. Relative URIs should be resolved before
* @throws IllegalArgumentException For relative URIs. Relative URIs should be resolved before
* being passed into this function.
* @throws IOException If the URI cannot be opened.
* @throws IllegalStateException If called on a foreground thread and skipThreadCheck is false.
Expand Down Expand Up @@ -338,7 +338,7 @@ public OutputStream openOutputStream(Uri uri) throws IOException {
* Opens a stream to the given URI.
*
* @return Never returns null.
* @throws InvalidArgumentException For relative URIs. Relative URIs should be resolved before
* @throws IllegalArgumentException For relative URIs. Relative URIs should be resolved before
* being passed into this function.
* @throws IOException If the URI cannot be opened.
*/
Expand Down

0 comments on commit f9a05d5

Please sign in to comment.