abstract class NestedExceptionUtils
Helper class for implementing exception classes which are capable of holding nested exceptions. Necessary because we can't share a base class among different exception types.
Mainly for use within the framework.
Author
Juergen Hoeller
Since
2.0
See Also
NestedRuntimeExceptionNestedCheckedExceptionNestedIOExceptionorg.springframework.web.util.NestedServletException
NestedExceptionUtils()
Helper class for implementing exception classes which are capable of holding nested exceptions. Necessary because we can't share a base class among different exception types. Mainly for use within the framework. |
open static fun buildMessage(message: String, cause: Throwable): String
Build a message for the given base message and root cause. |
|
open static fun getMostSpecificCause(original: Throwable): Throwable
Retrieve the most specific cause of the given exception, that is, either the innermost cause (root cause) or the exception itself. Differs from |
|
open static fun getRootCause(original: Throwable): Throwable
Retrieve the innermost cause of the given exception, if any. |