1b860785b4cf45087e9ae3d92bc3e19ecd92f410
[yangtools.git] / common / mockito-configuration / src / main / java / org / opendaylight / mockito / UnstubbedMethodException.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.mockito;
9
10 import static java.util.Objects.requireNonNull;
11
12 /**
13  * Exception to be thrown on unstubbed method call.
14  */
15 public final class UnstubbedMethodException extends RuntimeException {
16     @java.io.Serial
17     private static final long serialVersionUID = 1L;
18
19     /**
20      * Default constructor.
21      *
22      * @param message detail message
23      */
24     public UnstubbedMethodException(final String message) {
25         super(requireNonNull(message));
26     }
27 }