source: src/main/java/genius/core/events/RecoverableSessionErrorEvent.java

Last change on this file was 1, checked in by Wouter Pasman, 7 years ago

Initial import : Genius 9.0.0

File size: 1.1 KB
Line 
1package genius.core.events;
2
3import genius.core.parties.NegotiationParty;
4import genius.core.parties.NegotiationPartyInternal;
5import genius.core.parties.SessionsInfo;
6import genius.core.session.Session;
7
8/**
9 * This exception indicates that something went wrong but we did an automatic
10 * recovery. For example the session was succesfully completed but the aftermath
11 * failed. This can happen when there is an issue while writing the
12 * {@link SessionsInfo} or when the
13 * {@link NegotiationParty#negotiationEnded(genius.core.Bid)} call failed.
14 *
15 */
16public class RecoverableSessionErrorEvent implements NegotiationEvent {
17
18 private Session session;
19 private NegotiationPartyInternal party;
20 private Exception exception;
21
22 public RecoverableSessionErrorEvent(Session session, NegotiationPartyInternal party, Exception e) {
23 this.session = session;
24 this.party = party;
25 this.exception = e;
26 }
27
28 public Exception getException() {
29 return exception;
30 }
31
32 public NegotiationPartyInternal getParty() {
33 return party;
34 }
35
36 public Session getSession() {
37 return session;
38 }
39}
Note: See TracBrowser for help on using the repository browser.