My source code like below.
It has a error, \"No exception of type DataAccessException can be thrown; an exception type must be a subclass of Throwable\".
Your DataAccessException is not a subclass of Throwable class (extends Throwable). It should be, and without this inheritance, your code is not compilable with the current throws clause.
Here is an example: http://www.osix.net/modules/article/?id=754