Adding Constructors to the PDP exceptioon class

revert-dabc3590
Geeth Munasinghe 10 years ago
parent 843322d33f
commit 95b555b11c

@ -78,11 +78,6 @@
<groupId>org.wso2.carbon</groupId> <groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.logging</artifactId> <artifactId>org.wso2.carbon.logging</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.logging</artifactId>
<version>${carbon.kernel.version}</version>
</dependency>
</dependencies> </dependencies>
</project> </project>

@ -18,5 +18,37 @@
package org.wso2.carbon.policy.evaluator; package org.wso2.carbon.policy.evaluator;
public class PDPException { public class PDPException extends Exception {
private String pdpErrorMessage;
public String getPdpErrorMessage() {
return pdpErrorMessage;
}
public void setPdpErrorMessage(String pdpErrorMessage) {
this.pdpErrorMessage = pdpErrorMessage;
}
public PDPException(String message) {
setPdpErrorMessage(message);
}
public PDPException(String message, Exception ex) {
super(message, ex);
setPdpErrorMessage(message);
}
public PDPException(String message, Throwable cause) {
super(message, cause);
setPdpErrorMessage(message);
}
public PDPException(Throwable cause) {
super(cause);
}
public PDPException(){
super();
}
} }

@ -18,9 +18,12 @@
package org.wso2.carbon.policy.mgt.common; package org.wso2.carbon.policy.mgt.common;
import java.util.List;
public class Policy { public class Policy {
private int id; private int id;
private String policyName; private String policyName;
private List<Features> featuresList;
public static class Features { public static class Features {

Loading…
Cancel
Save