Skip to content

Commit

Permalink
throw IOException instead of ISOException
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Feb 17, 2015
1 parent 6e08532 commit 221196f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jpos/src/main/java/org/jpos/iso/BaseChannel.java
Original file line number Diff line number Diff line change
Expand Up @@ -767,10 +767,11 @@ else if (len > 0 && len <= getMaxPacketLength()) {
if (usable)
evt.addMessage (e);
throw e;
} catch (Exception e) {
} catch (Exception e) {
closeSocket();
evt.addMessage (m);
evt.addMessage (e);
throw new ISOException ("unexpected exception", e);
throw new IOException ("unexpected exception", e);
} finally {
Logger.log (evt);
}
Expand Down

0 comments on commit 221196f

Please sign in to comment.