propagate datastore exceptions all the way to northbound
[neutron.git] / northbound-api / src / main / java / org / opendaylight / neutron / northbound / api / DatastoreOperationFailedWebApplicationException.java
1 /*
2  * Copyright (c) 2018 Red Hat, Inc. and others. All rights reserved.
3  *
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
7  */
8 package org.opendaylight.neutron.northbound.api;
9
10 import javax.ws.rs.WebApplicationException;
11 import org.opendaylight.neutron.spi.ReadFailedRuntimeException;
12 import org.opendaylight.yangtools.yang.common.OperationFailedException;
13
14 /**
15  * JAX RS specific exception wrapping an ODL MDSAL datastore read/validate/write operation failure.
16  *
17  * @see ReadFailedRuntimeException
18  *
19  * @author Michael Vorburger.ch
20  */
21 public class DatastoreOperationFailedWebApplicationException extends WebApplicationException {
22     private static final long serialVersionUID = 1L;
23
24     public DatastoreOperationFailedWebApplicationException(OperationFailedException cause) {
25         super(cause);
26     }
27
28 }