1 /* 2 * Copyright (c) 2007 Mockito contributors 3 * This program is made available under the terms of the MIT License. 4 */ 5 6 package org.mockito.exceptions.verification; 7 8 import static org.mockito.internal.util.StringUtil.removeFirstLine; 9 10 import org.mockito.exceptions.base.MockitoAssertionError; 11 12 public class WantedButNotInvoked extends MockitoAssertionError { 13 14 private static final long serialVersionUID = 1L; 15 WantedButNotInvoked(String message)16 public WantedButNotInvoked(String message) { 17 super(message); 18 } 19 20 @Override toString()21 public String toString() { 22 return removeFirstLine(super.toString()); 23 } 24 } 25