What is throws advice in Spring?

What is throws advice in Spring?

The ThrowsAdvice lets you definebehaviour should an exception occur. ThrowsAdvice is a marker interface and contains no method but need to be implemented. A class that implements this interface must have at least one method with either of the following two signatures:
  * void afterThrowing(Throwable t)
  * void afterThrowing(Method m, Object[] o, Object target, Throwable t)

By:Jalees
Date:2031-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher