added new exception
This commit is contained in:
parent
3e8ea1d4ed
commit
e98205a8f2
|
@ -81,6 +81,7 @@ public class Constants {
|
|||
public static final int STATUS_HTTP_412_PRECONDITION_FAILED = 412;
|
||||
public static final int STATUS_HTTP_422_UNPROCESSABLE_ENTITY = 422;
|
||||
public static final int STATUS_HTTP_500_INTERNAL_ERROR = 500;
|
||||
public static final int STATUS_HTTP_501_NOT_IMPLEMENTED = 501;
|
||||
public static final String URL_TOKEN_HISTORY = "_history";
|
||||
public static final String HEADER_ACCEPT_ENCODING = "Accept-Encoding";
|
||||
public static final String HEADER_CONTENT_ENCODING = "Content-Encoding";
|
||||
|
|
|
@ -0,0 +1,48 @@
|
|||
package ca.uhn.fhir.rest.server.exceptions;
|
||||
import ca.uhn.fhir.rest.server.Constants;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Represents an <b>HTTP 400 Bad Request</b> response.
|
||||
* This status indicates that the resource provider currently lacks the ability
|
||||
* to fullfill the request. There is a good change that the functionality will
|
||||
* be added in the future
|
||||
*
|
||||
* Represents an <b>HTTP 501 Not Implemented</b> response, which means the resource provider currently lacks the ability to fullfill the request.
|
||||
*
|
||||
* <p>
|
||||
* Note that a complete list of RESTful exceptions is available in the
|
||||
* <a href="./package-summary.html">Package Summary</a>.
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class NotImpementedOperationException extends BaseServerResponseException {
|
||||
|
||||
public static final int STATUS_CODE = Constants.STATUS_HTTP_501_NOT_IMPLEMENTED;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public NotImpementedOperationException(String theMessage) {
|
||||
super(STATUS_CODE, theMessage);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue