1 /* 2 * Copyright (c) 2006 JMockit developers 3 * This file is subject to the terms of the MIT license (see LICENSE.txt). 4 */ 5 package mockit.internal.expectations.invocation; 6 7 import edu.umd.cs.findbugs.annotations.NonNull; 8 9 /** 10 * Thrown to indicate that one or more unexpected invocations occurred during the test. 11 */ 12 public final class UnexpectedInvocation extends Error { 13 private static final long serialVersionUID = 1L; 14 15 public UnexpectedInvocation(@NonNull String detailMessage) { 16 super(detailMessage); 17 } 18 19 @Override 20 public String toString() { 21 return getMessage(); 22 } 23 }