2 * Copyright (c) 2013 Cisco 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
8 package org.opendaylight.controller.sal.binding.codegen;
10 import com.google.common.base.Preconditions;
13 * Exception is raised when supplied Bidning Aware
14 * RPCService class is not routed and was used in context
15 * where routed RPCs should only be used.
18 public class RpcIsNotRoutedException extends IllegalStateException {
20 private static final long serialVersionUID = 1L;
22 public RpcIsNotRoutedException(final String message, final Throwable cause) {
23 super(Preconditions.checkNotNull(message), cause);
26 public RpcIsNotRoutedException(final String message) {
27 super(Preconditions.checkNotNull(message));