Last change
on this file was 1, checked in by Wouter Pasman, 7 years ago |
Initial import : Genius 9.0.0
|
File size:
1.2 KB
|
Line | |
---|
1 | package genius.core.events;
|
---|
2 |
|
---|
3 | import genius.core.parties.NegotiationPartyInternal;
|
---|
4 | import genius.core.session.Session;
|
---|
5 | import genius.core.session.SessionConfiguration;
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * Thrown if construction of {@link NegotiationPartyInternal} fails. Contains
|
---|
9 | * partial data scraps from the failed construction, which is needed for
|
---|
10 | * logging. <br>
|
---|
11 | * <b>Notice</b>: this contains only the {@link SessionConfiguration} but no
|
---|
12 | * instantiated Profiles. This is because when this exception is thrown not all
|
---|
13 | * profiles may have been created, eg when we have to time-out construction.
|
---|
14 | * Therefore you will have to load the profiles (possibly again) if you want to
|
---|
15 | * access them when handling this error.
|
---|
16 | */
|
---|
17 | @SuppressWarnings("serial")
|
---|
18 | public class BrokenPartyException extends Exception {
|
---|
19 |
|
---|
20 | private Session session;
|
---|
21 | private SessionConfiguration configuration;
|
---|
22 |
|
---|
23 | public BrokenPartyException(String mes, SessionConfiguration configuration, Session session, Throwable cause) {
|
---|
24 | super(mes, cause);
|
---|
25 | this.session = session;
|
---|
26 | this.configuration = configuration;
|
---|
27 |
|
---|
28 | }
|
---|
29 |
|
---|
30 | public Session getSession() {
|
---|
31 | return session;
|
---|
32 | }
|
---|
33 |
|
---|
34 | public SessionConfiguration getConfiguration() {
|
---|
35 | return configuration;
|
---|
36 | }
|
---|
37 |
|
---|
38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.