- Timestamp:
- 09/18/19 10:00:22 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocol/src/main/java/geniusweb/protocol/ProtocolException.java
r1 r4 13 13 14 14 /** 15 *16 15 * @param message the error message 17 16 * @param party offending party, either the {@link PartyId} or a … … 19 18 */ 20 19 public ProtocolException(String message, String party) { 21 super(party + ":" + message); 22 this.party = party; 20 this(message, party, null); 23 21 } 24 22 25 23 /** 24 * ProtocolException is special, in that it does not auto-fill the 25 * stacktrace. This is needed because usually a ProtocolException is caused 26 * by a party doing a bad action. Creating a stacktrace pointing to the 27 * class reporting the protocol exception (usually, the protocol handler) 28 * makes no sense as the protocol handler is doing the correct job there. 29 * 26 30 * 27 31 * @param message the error message … … 31 35 */ 32 36 public ProtocolException(String message, String party, Throwable e) { 33 super(party + ":" + message, e );37 super(party + ":" + message, e, true, false); 34 38 this.party = party; 35 39 }
Note:
See TracChangeset
for help on using the changeset viewer.