01: /*
02: * Copyright 2003 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: IllegalStateTransitionException.java,v 1.1 2003/05/12 06:46:05 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.state;
12:
13: import javax.jdo.JDOFatalInternalException;
14:
15: /**
16: * A <tt>IllegalStateTransitionException</tt> is thrown if a life-cycle
17: * state attempts a transition that is illegal. This indicates a coding
18: * bug in TJDO.
19: *
20: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
21: * @version $Revision: 1.1 $
22: */
23:
24: public class IllegalStateTransitionException extends
25: JDOFatalInternalException {
26: /**
27: * Constructs an illegal state transition exception.
28: *
29: * @param state The object's current life-cycle state.
30: * @param transition A string describing the type of transition.
31: * @param sm The StateManagerImpl of the object.
32: */
33:
34: public IllegalStateTransitionException(LifeCycleState state,
35: String transition, StateManagerImpl sm) {
36: super ("An illegal " + transition
37: + " transition was attempted from the " + state
38: + " state, sm = " + sm);
39: }
40: }
|