The DataProviderException is generic runtime exception that wraps an
underlying cause exception for
DataProvider methods. Each of the
DataProvider methods throw this runtime exception to allow for clean
wrapping of underlying exceptions. Since it is unknown what implementations
of DataProvider will exist, it cannot be known what types of exceptions this
will wrap.
The decision to make this a RuntimeException was intentional so as not to
force a try...catch block around every invocation of a
DataProvider method, but still explicitly declare the throws clause on each
method making it clear that the user should consult the documentation for the
specific DataProvider implementation to see what exceptions might be thrown.
author: Joe Nuxoll |