01: package org.enhydra.shark.api.client.wfservice;
02:
03: import org.enhydra.shark.api.RootException;
04:
05: /**
06: Raised when user tries to open or update package (using PackageAdministration
07: interface), and some externally referenced package of given package hasn't
08: pass shark's validation.
09: */
10: public final class ExternalPackageInvalid extends RootException {
11:
12: private String xpdlErrorMessage;
13:
14: public ExternalPackageInvalid() {
15: super ();
16: } // ctor
17:
18: public ExternalPackageInvalid(String $reason) {
19: super ($reason);
20: } // ctor
21:
22: public ExternalPackageInvalid(Throwable th) {
23: super (th);
24: }
25:
26: public ExternalPackageInvalid(String xpdlErrorMsg, String 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 getXPDLValidationErrors() {
36: return xpdlErrorMessage;
37: }
38:
39: } // class ExternalPackageInvalid
|