KickJava   Java API By Example, From Geeks To Geeks.

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


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 delete from it
6  * the xpdl file which will make repository content invalid.
7  */

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

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

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

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