1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| package jnpf.dmsBusinessOccupancy;
|
| /** Machine-readable invariant failures; business adapters resolve display text from online configuration. */
| public final class BusinessOccupancyException extends IllegalStateException {
| public enum Reason {
| TRANSACTION_REQUIRED, READ_ONLY_TRANSACTION, NUMBER_BUSY, ALREADY_OCCUPIED,
| CHAIN_ALREADY_RELEASED, TARGET_CHANGED, TRANSACTION_CONNECTION_MISMATCH,
| UNSUPPORTED_TRANSACTION, UNSUPPORTED_ISOLATION
| }
| private final Reason reason;
|
| public BusinessOccupancyException(Reason reason) {
| super(reason.name());
| this.reason = reason;
| }
|
| public Reason getReason() { return reason; }
| }
|
|