2 * Copyright (c) 2017 Inocybe Technologies 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
8 package org.opendaylight.controller.cluster.messaging;
11 * An exception indicating a message slice failure.
13 * @author Thomas Pantelis
15 public class MessageSliceException extends Exception {
16 private static final long serialVersionUID = 1L;
18 private final boolean isRetriable;
21 * Constructs an instance.
23 * @param message the detail message
24 * @param cause the cause
26 public MessageSliceException(final String message, final Throwable cause) {
27 super(message, cause);
32 * Constructs an instance.
34 * @param message the detail message
35 * @param isRetriable if true, indicates the original operation can be retried
37 public MessageSliceException(final String message, final boolean isRetriable) {
39 this.isRetriable = isRetriable;
43 * Returns whether or not the original operation can be retried.
45 * @return true if it can be retried, false otherwise
47 public boolean isRetriable() {