Deprecate all MD-SAL APIs
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / md / sal / dom / api / DOMRpcImplementationNotAvailableException.java
index cca9a452b8f1fc29a9ad98aba9055921e89e557b..e39ad1f90d70142c88ad3634d04bf7aca27cb4a0 100644 (file)
@@ -7,20 +7,29 @@
  */
 package org.opendaylight.controller.md.sal.dom.api;
 
-import com.google.common.base.Preconditions;
-import javax.annotation.Nonnull;
+import static java.util.Objects.requireNonNull;
+
+import org.eclipse.jdt.annotation.NonNull;
 
 /**
  * Exception indicating that no implementation of the requested RPC service is available.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMRpcImplementationNotAvailableException} instead.
  */
+@Deprecated
 public class DOMRpcImplementationNotAvailableException extends DOMRpcException {
     private static final long serialVersionUID = 1L;
 
-    public DOMRpcImplementationNotAvailableException(@Nonnull final String format, final Object... args) {
+    public DOMRpcImplementationNotAvailableException(final @NonNull String format, final Object... args) {
         super(String.format(format, args));
     }
 
-    public DOMRpcImplementationNotAvailableException(@Nonnull final Throwable cause, @Nonnull final String format, final Object... args) {
-        super(String.format(format, args), Preconditions.checkNotNull(cause));
+    public DOMRpcImplementationNotAvailableException(final @NonNull Throwable cause, final @NonNull String format,
+            final Object... args) {
+        super(String.format(format, args), requireNonNull(cause));
+    }
+
+    public DOMRpcImplementationNotAvailableException(final String message, final Throwable cause) {
+        super(message, cause);
     }
 }