KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jaspersoft > jasperserver > ws > axis2 > WSException


1 /*
2  * WSException.java
3  *
4  * All rights reserved.
5  * Copyright (C) 2005 JasperSoft Corporation
6  *
7  * JasperSoft Corporation
8  * 303 Second Street, Suite 450 North
9  * San Francisco, CA 94107
10  * http://www.jaspersoft.com
11  *
12  *
13  * Created on May 25, 2006, 4:22 PM
14  *
15  */

16
17 package com.jaspersoft.jasperserver.ws.axis2;
18
19 /**
20  *
21  * @author gtoffoli
22  */

23 public class WSException extends java.lang.Exception JavaDoc {
24     
25     public static final int NO_ERROR = 0;
26     public static final int GENERAL_ERROR = 1;
27     public static final int GENERAL_ERROR2 = 2;
28     public static final int REFERENCED_RESOURCE_NOT_FOUND = 3;
29     public static final int EXPORT_ERROR = 4;
30     public static final int FILL_ERROR = 5;
31     public static final int GENERAL_REQUEST_ERROR = 6;
32     
33     private int errorCode = 0;
34     
35     /** Creates a new instance of WSException */
36     public WSException(int code, String JavaDoc message) {
37         super(message);
38         this.errorCode = code;
39     }
40
41     public int getErrorCode() {
42         return errorCode;
43     }
44
45     public void setErrorCode(int errorCode) {
46         this.errorCode = errorCode;
47     }
48     
49 }
50
Popular Tags