"someVoidMethod() does nothing the 1st time but throws an exception the 2nd time is called"
));
}
public void wrongTypeOfReturnValue(String expectedType, String actualType, String methodName) {
throw new WrongTypeOfReturnValue(join(
actualType + " cannot be returned by " + methodName + "()",
methodName + "() should return " + expectedType,
"***",
"If you're unsure why you're getting above error read on.",
"Due to the nature of the syntax above problem might occur because:",