KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.enhydra.shark.api.client.wfservice;
2 import org.enhydra.shark.api.RootException;
3
4 /**
5  Raised when user tries to open or update package (using PackageAdministration
6  interface), and some externally referenced package of given package hasn't
7  pass shark's validation.
8  */

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

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

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

35    public String JavaDoc getXPDLValidationErrors () {
36       return xpdlErrorMessage;
37    }
38
39
40
41 } // class ExternalPackageInvalid
42
Popular Tags