Skip to content

Commit

Permalink
Changed RuntimeException to IllegalArgumentException.
Browse files Browse the repository at this point in the history
  • Loading branch information
aldenml committed Mar 2, 2015
1 parent ff773af commit 40930d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/com/frostwire/jlibtorrent/TorrentInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public TorrentInfo(byte[] bencodedBytes) {
lazy_entry.bdecode(Vectors.bytes2char_vector(bencodedBytes), lentry, ec);

if (ec.value() != 0) {
this.ti = null;
throw new RuntimeException(ec.message());
throw new IllegalArgumentException(ec.message());
} else {
this.ti = new torrent_info(lentry);
}
Expand Down

0 comments on commit 40930d1

Please sign in to comment.