Merge "Fixed for bug 1197"
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / sal / binding / codegen / RpcIsNotRoutedException.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, 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.controller.sal.binding.codegen;
9
10 import com.google.common.base.Preconditions;
11
12 /**
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.
16  *
17  */
18 public class RpcIsNotRoutedException extends IllegalStateException {
19
20     private static final long serialVersionUID = 1L;
21
22     public RpcIsNotRoutedException(final String message, final Throwable cause) {
23         super(Preconditions.checkNotNull(message), cause);
24     }
25
26     public RpcIsNotRoutedException(final String message) {
27         super(Preconditions.checkNotNull(message));
28     }
29 }