KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > client > wfservice > PackageInvalid


1 package org.enhydra.shark.api.client.wfservice;
2 import org.enhydra.shark.api.RootException;
3
4 /**
5  * Raised when user tries to upload to repository, or open from repository
6  * the xpdl file that hasn't pass shark's validation.
7  */

8 public final class PackageInvalid extends RootException {
9
10    private String JavaDoc xpdlErrorMessage;
11
12    public PackageInvalid () {
13       super();
14    } // ctor
15

16
17    public PackageInvalid (String JavaDoc $reason) {
18       super($reason);
19    } // ctor
20

21    public PackageInvalid(Throwable JavaDoc th) {
22       super(th);
23    }
24
25    public PackageInvalid(String JavaDoc xpdlErrorMsg,String JavaDoc message) {
26       super(message);
27       xpdlErrorMessage=xpdlErrorMsg;
28    }
29
30    /**
31     Returns a HTML formated text representing all validation errors that
32     have happened during loading or updating packages.
33     */

34    public String JavaDoc getXPDLValidationErrors () {
35       return xpdlErrorMessage;
36    }
37
38 }
39
Popular Tags