title: TestNG skips test after raising Exception in @DataProvider method
body: <p>I'm a bit confused.</p>
  
  <p>How can I get TestNG to report an error for a test?</p>
  
  <pre><code>// ...
  @DataProvider(name = "foo")
  public Object[][] provideData () {
      throw new SomeRuntimeException("Some error occurred. The test configuration "
              + "is somehow incorrect.");
  }
  </code></pre>
  
  <p>This will just lead to test skipping. The exception doesn't even get logged. 
  Moving this to a constructor will just get the exception logged but that's not enough...</p>
  
  <p>I want a big fat error message.</p>
  
  <p>At the moment, using a dedicated (self) test method does the job which at leasts shows some test failure...</p>
  
  <p>Anyway, it would be nice to know how testNG's definition of an error looks like.</p>
  
  <p>Thank you for any hints!</p>