01: package org.enhydra.shark.api.client.wfbase;
02:
03: import java.io.Serializable;
04:
05: /**
06: * Java implementation of OMG's data type. This is how OMG defines it:
07: * <p>
08: * The BaseError structure is used to hold information on an application error. The
09: * exception_source is a printable description of the source of the exception. The
10: * exception_object is a pass-by-value object or an object reference of the object that
11: * generated the exception. The exception_code is an identifier associated with the
12: * source type. The exception_reason is a textual string containing a description of the
13: * exception and should correspond to the code.
14: * <p>
15: * Currently, it is not used in shark, but it is here because we want to
16: * be as much as possible close to OMG specification.
17: */
18: public final class BaseError implements Serializable {
19: public int exception_code = (int) 0;
20: public String exception_source = null;
21: public Object exception_object = null;
22: public String exception_reason = null;
23:
24: public BaseError() {
25: } // ctor
26:
27: public BaseError(int _exception_code, String _exception_source,
28: Object _exception_object, String _exception_reason) {
29: exception_code = _exception_code;
30: exception_source = _exception_source;
31: exception_object = _exception_object;
32: exception_reason = _exception_reason;
33: } // ctor
34:
35: }
|