From 58142dbf7ceb966c950db2e83373f8407e74dd56 Mon Sep 17 00:00:00 2001 From: Abhishek Koneru Date: Wed, 21 Nov 2012 18:45:32 -0500 Subject: Ticket 191 - Mapping HTTP Exception to their proper HTTP error codes --- .../com/netscape/certsrv/profile/ProfileNotFoundException.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'base/common/src/com/netscape/certsrv/profile/ProfileNotFoundException.java') 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; } -- cgit