Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ The <action> type attribute can be add,update,fix,remove.
<action type="fix" dev="ggregory" due-to="Gary Gregory">CPUTF8 is missing optional hashCode() and equals() to match its Comparable.compareTo().</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Pack200 class IcBands.IcTuple implements equals() but not hashCode().</action>
<action type="fix" dev="ggregory" due-to="Martin Wiesner">Fix typos in Javadoc and comments #761.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">org.apache.commons.compress.utils.ParsingUtils should set the cause of the exceptions it throws.</action>
<!-- ADD -->
<action type="add" dev="ggregory" due-to="Gary Gregory">Add MemoryLimitException.MemoryLimitException(long, long).</action>
<action type="add" dev="ggregory" due-to="Gary Gregory">Add CompressException.CompressException(String, Object...).</action>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public static int parseIntValue(final String value) throws IOException {
public static int parseIntValue(final String value, final int radix) throws IOException {
try {
return Integer.parseInt(value, radix);
} catch (final NumberFormatException exp) {
throw new IOException("Unable to parse int from string value: " + value);
} catch (final NumberFormatException e) {
throw new IOException("Unable to parse int from string value: " + value, e);
}
}

Expand All @@ -76,8 +76,8 @@ public static long parseLongValue(final String value) throws IOException {
public static long parseLongValue(final String value, final int radix) throws IOException {
try {
return Long.parseLong(value, radix);
} catch (final NumberFormatException exp) {
throw new IOException("Unable to parse long from string value: " + value);
} catch (final NumberFormatException e) {
throw new IOException("Unable to parse long from string value: " + value, e);
}
}

Expand Down
Loading