2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.neutron.northbound.api;
11 import java.net.HttpURLConnection;
12 import javax.ws.rs.WebApplicationException;
13 import javax.ws.rs.core.MediaType;
14 import javax.ws.rs.core.Response;
17 * Status Code 501 (Not Implemented Error)
20 * The function is not implemented.
23 public class UnimplementedException extends WebApplicationException {
24 private static final long serialVersionUID = 1L;
27 * Constructor for the NOT_IMPLEMENTED custom handler.
29 * @param string Error message to specify further the
30 * SERVICE_UNAVAILABLE response
33 public UnimplementedException(String string) {
34 super(Response.status(HttpURLConnection.HTTP_NOT_IMPLEMENTED).entity(string).type(MediaType.TEXT_PLAIN)