fix(URLUtil): correct spelling of "occurred" in exception messages

This commit is contained in:
yulin 2025-11-23 19:12:35 +08:00
parent ff32ed0872
commit 7258a5b946

View File

@ -270,7 +270,7 @@ public class URLUtil extends URLEncodeUtil {
try {
return file.toURI().toURL();
} catch (MalformedURLException e) {
throw new UtilException(e, "Error occured when get URL!");
throw new UtilException(e, "Error occurred when get URL!");
}
}
@ -288,7 +288,7 @@ public class URLUtil extends URLEncodeUtil {
urls[i] = files[i].toURI().toURL();
}
} catch (MalformedURLException e) {
throw new UtilException(e, "Error occured when get URL!");
throw new UtilException(e, "Error occurred when get URL!");
}
return urls;