View Javadoc
1   package ca.uhn.fhir.rest.server.exceptions;
2   
3   import org.hl7.fhir.instance.model.api.IBaseOperationOutcome;
4   
5   import ca.uhn.fhir.util.CoverageIgnore;
6   
7   /*
8    * #%L
9    * HAPI FHIR - Core Library
10   * %%
11   * Copyright (C) 2014 - 2018 University Health Network
12   * %%
13   * Licensed under the Apache License, Version 2.0 (the "License");
14   * you may not use this file except in compliance with the License.
15   * You may obtain a copy of the License at
16   * 
17   *      http://www.apache.org/licenses/LICENSE-2.0
18   * 
19   * Unless required by applicable law or agreed to in writing, software
20   * distributed under the License is distributed on an "AS IS" BASIS,
21   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22   * See the License for the specific language governing permissions and
23   * limitations under the License.
24   * #L%
25   */
26  
27  /**
28   * Exception for use when a response is received or being sent that does not correspond to any other exception type. An HTTP status code must be provided, and will be provided to the caller in the
29   * case of a server implementation.
30   */
31  @CoverageIgnore
32  public class UnclassifiedServerFailureException extends BaseServerResponseException {
33  
34  	/**
35  	 * Constructor
36  	 * 
37  	 * @param theStatusCode
38  	 *            The HTTP status code to return (e.g. 404 if you wish to return an HTTP 404 status)
39  	 * @param theMessage
40  	 *            The message to add to the status line
41  	 */
42  	public UnclassifiedServerFailureException(int theStatusCode, String theMessage) {
43  		super(theStatusCode, theMessage);
44  	}
45  
46  	/**
47  	 * Constructor
48  	 * 
49  	 * @param theStatusCode
50  	 *            The HTTP status code to return (e.g. 404 if you wish to return an HTTP 404 status)
51  	 * @param theMessage
52  	 *            The message to add to the status line
53  	 *  @param theOperationOutcome The OperationOutcome resource to return to the client
54  	 */
55  	public UnclassifiedServerFailureException(int theStatusCode, String theMessage, IBaseOperationOutcome theOperationOutcome) {
56  		super(theStatusCode, theMessage, theOperationOutcome);
57  	}
58  
59  	private static final long serialVersionUID = 1L;
60  
61  }