01: package org.enhydra.shark.api.client.wfservice;
02:
03: import org.enhydra.shark.api.RootException;
04:
05: /**
06: * Raised when user tries to upload to repository, or open from repository
07: * the xpdl file that hasn't pass shark's validation.
08: */
09: public final class PackageInvalid extends RootException {
10:
11: private String xpdlErrorMessage;
12:
13: public PackageInvalid() {
14: super ();
15: } // ctor
16:
17: public PackageInvalid(String $reason) {
18: super ($reason);
19: } // ctor
20:
21: public PackageInvalid(Throwable th) {
22: super (th);
23: }
24:
25: public PackageInvalid(String xpdlErrorMsg, String 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 getXPDLValidationErrors() {
35: return xpdlErrorMessage;
36: }
37:
38: }
|