The class SQLExceptionChainBuilder (internal API) uses generics for the exception type (SQLException or a subclass). In practice, this is only used within FbExceptionBuilder when building a chain of FBSQLExceptionInfo in toFlatSQLException to preserve the individual elements. The presence of the generics just makes the definition/instantiation and use more verbose for little to no actual benefit (and in the case of FbExceptionBuilder the restriction to only add instances of FBSQLExceptionInfo is hardly relevant, and follows from the code itself, and is limited to a single method).
The class
SQLExceptionChainBuilder
(internal API) uses generics for the exception type (SQLException
or a subclass). In practice, this is only used withinFbExceptionBuilder
when building a chain ofFBSQLExceptionInfo
intoFlatSQLException
to preserve the individual elements. The presence of the generics just makes the definition/instantiation and use more verbose for little to no actual benefit (and in the case ofFbExceptionBuilder
the restriction to only add instances ofFBSQLExceptionInfo
is hardly relevant, and follows from the code itself, and is limited to a single method).