01: package org.wfmc.wapi;
02:
03: /**
04: * @author Adrian Price
05: */
06: public abstract class WMInvalidObjectException extends
07: WMWorkflowException {
08: private static final long serialVersionUID = -5184952411867999690L;
09: private final Object object;
10:
11: protected WMInvalidObjectException(int errorCode, Object object) {
12: super (new WMError(errorCode));
13: this .object = object;
14: }
15:
16: public Object getObject() {
17: return object;
18: }
19:
20: public String toString() {
21: return getClass().getName() + '@'
22: + System.identityHashCode(this ) + "[object='" + object
23: + '\'' + ']';
24: }
25: }
|