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.controller.northbound.commons.exception;
11 import javax.ws.rs.WebApplicationException;
12 import javax.ws.rs.core.MediaType;
13 import javax.ws.rs.core.Response;
16 * Status Code 501 (Not Implemented)
18 * The server does not support the functionality required to fulfill the
19 * request. This is the appropriate response when the server does not recognize
20 * the request method and is not capable of supporting it for any resource.
22 public class NotImplementedException extends WebApplicationException {
23 private static final long serialVersionUID = 1L;
25 public NotImplementedException(String string) {
26 super(Response.status(new NotImplemented()).entity(string).type(MediaType.TEXT_PLAIN).build());