java.lang.Object
org.firebirdsql.jaybird.util.ExceptionHelper
Helpers for exception handling
- Author:
- Mark Rotteveel
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
collectAllMessages
(SQLException sqlException) Iterates over theSQLException
and concatenates all messages from the exception, its causes, and next exceptions and their causes.
-
Method Details
-
collectAllMessages
Iterates over theSQLException
and concatenates all messages from the exception, its causes, and next exceptions and their causes.The messages are produced using
Throwable.toString()
, so they include the name of the exception.- Parameters:
sqlException
- starting exception- Returns:
- All exception messages concatenated using new line
-