diff options
author | Abhishek Koneru <akoneru@redhat.com> | 2012-11-21 18:45:32 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2013-01-04 10:10:13 -0500 |
commit | 4faa78799a947b7c06db6835ac25c0954e102c5a (patch) | |
tree | 53ee40116233f6d9386b51f35c0782e75680568f /base/common/src/com/netscape/certsrv/profile | |
parent | 01bbfc224a228206fbe18318b2a23363fa9663cc (diff) | |
download | pki-4faa78799a947b7c06db6835ac25c0954e102c5a.tar.gz pki-4faa78799a947b7c06db6835ac25c0954e102c5a.tar.xz pki-4faa78799a947b7c06db6835ac25c0954e102c5a.zip |
Ticket 191 - Mapping HTTP Exception to their proper HTTP error codes
Diffstat (limited to 'base/common/src/com/netscape/certsrv/profile')
-rw-r--r-- | base/common/src/com/netscape/certsrv/profile/ProfileNotFoundException.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/base/common/src/com/netscape/certsrv/profile/ProfileNotFoundException.java b/base/common/src/com/netscape/certsrv/profile/ProfileNotFoundException.java index 7a1c9ea62..c6a549b07 100644 --- a/base/common/src/com/netscape/certsrv/profile/ProfileNotFoundException.java +++ b/base/common/src/com/netscape/certsrv/profile/ProfileNotFoundException.java @@ -17,11 +17,9 @@ // --- END COPYRIGHT BLOCK --- package com.netscape.certsrv.profile; -import javax.ws.rs.core.Response; +import com.netscape.certsrv.base.ResourceNotFoundException; -import com.netscape.certsrv.base.PKIException; - -public class ProfileNotFoundException extends PKIException { +public class ProfileNotFoundException extends ResourceNotFoundException { private static final long serialVersionUID = -4784839378360933483L; @@ -32,12 +30,12 @@ public class ProfileNotFoundException extends PKIException { } public ProfileNotFoundException(String profileId, String message) { - super(Response.Status.NOT_FOUND, message); + super(message); this.profileId = profileId; } public ProfileNotFoundException(String profileId, String message, Throwable cause) { - super(Response.Status.NOT_FOUND, message, cause); + super(message, cause); this.profileId = profileId; } |