KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > client > wfbase > BaseError


1 package org.enhydra.shark.api.client.wfbase;
2
3 /**
4  * Java implementation of OMG's data type. This is how OMG defines it:
5  * <p>
6  * The BaseError structure is used to hold information on an application error. The
7  * exception_source is a printable description of the source of the exception. The
8  * exception_object is a pass-by-value object or an object reference of the object that
9  * generated the exception. The exception_code is an identifier associated with the
10  * source type. The exception_reason is a textual string containing a description of the
11  * exception and should correspond to the code.
12  * <p>
13  * Currently, it is not used in shark, but it is here because we want to
14  * be as much as possible close to OMG specification.
15  */

16 public final class BaseError
17 {
18    public int exception_code = (int)0;
19    public String JavaDoc exception_source = null;
20    public Object JavaDoc exception_object = null;
21    public String JavaDoc exception_reason = null;
22
23    public BaseError ()
24    {
25    } // ctor
26

27    public BaseError (int _exception_code, String JavaDoc _exception_source, Object JavaDoc _exception_object, String JavaDoc _exception_reason)
28    {
29       exception_code = _exception_code;
30       exception_source = _exception_source;
31       exception_object = _exception_object;
32       exception_reason = _exception_reason;
33    } // ctor
34

35 }
36
Popular Tags