propagate datastore exceptions all the way to northbound
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / ReadFailedRuntimeException.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.spi;
9
10 import org.opendaylight.controller.md.sal.common.api.data.ReadFailedException;
11
12 /**
13  * {@link ReadFailedException} as an unchecked RuntimeException.
14  * See also org.opendaylight.neutron.northbound.api.DatastoreOperationFailedWebApplicationException.
15  *
16  * @author Michael Vorburger.ch
17  */
18 public class ReadFailedRuntimeException extends RuntimeException {
19     private static final long serialVersionUID = 1L;
20
21     public ReadFailedRuntimeException(ReadFailedException cause) {
22         super(cause);
23     }
24 }