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