2 * Copyright (c) 2014 Brocade Communications 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.md.sal.common.api.data;
11 import org.opendaylight.yangtools.util.concurrent.ExceptionMapper;
12 import org.opendaylight.yangtools.yang.common.OperationFailedException;
13 import org.opendaylight.yangtools.yang.common.RpcError;
16 * An exception for a failed read.
18 * @deprecated Use {@link org.opendaylight.mdsal.common.api.ReadFailedException} instead.
21 public class ReadFailedException extends OperationFailedException {
23 private static final long serialVersionUID = 1L;
25 public static final ExceptionMapper<ReadFailedException> MAPPER =
26 new ExceptionMapper<ReadFailedException>("read", ReadFailedException.class) {
28 protected ReadFailedException newWithCause(String message, Throwable cause) {
29 return new ReadFailedException(message, cause);
33 public ReadFailedException(String message, RpcError... errors) {
34 super(message, errors);
37 public ReadFailedException(String message, Throwable cause, RpcError... errors) {
38 super(message, cause, errors);