1 16 17 package com.jaspersoft.jasperserver.ws.axis2; 18 19 23 public class WSException extends java.lang.Exception { 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 36 public WSException(int code, String 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 |