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 public class ReadFailedException extends OperationFailedException {
20 private static final long serialVersionUID = 1L;
22 public static final ExceptionMapper<ReadFailedException> MAPPER =
23 new ExceptionMapper<ReadFailedException>("read", ReadFailedException.class) {
25 protected ReadFailedException newWithCause(String message, Throwable cause) {
26 return new ReadFailedException(message, cause);
30 public ReadFailedException(String message, RpcError... errors) {
31 super(message, errors);
34 public ReadFailedException(String message, Throwable cause, RpcError... errors) {
35 super(message, cause, errors);