Ignore:
Timestamp:
09/18/19 10:00:22 (5 years ago)
Author:
bart
Message:

Faster example parties

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocol/src/main/java/geniusweb/protocol/ProtocolException.java

    r1 r4  
    1313
    1414        /**
    15          *
    1615         * @param message the error message
    1716         * @param party   offending party, either the {@link PartyId} or a
     
    1918         */
    2019        public ProtocolException(String message, String party) {
    21                 super(party + ":" + message);
    22                 this.party = party;
     20                this(message, party, null);
    2321        }
    2422
    2523        /**
     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         *
    2630         *
    2731         * @param message the error message
     
    3135         */
    3236        public ProtocolException(String message, String party, Throwable e) {
    33                 super(party + ":" + message, e);
     37                super(party + ":" + message, e, true, false);
    3438                this.party = party;
    3539        }
Note: See TracChangeset for help on using the changeset viewer.