Yes Gary, something similar. However it would differ from IOExceptionList
which creates an aggregated message of all exceptions but loses the
stacktrace via getCause or printStackTrace.

To be precise, this is exactly what I am taking about
https://github.com/ReactiveX/RxJava/blob/3.x/src/main/java/io/reactivex/rxjava3/exceptions/CompositeException.
<https://github.com/ReactiveX/RxJava/blob/3.x/src/main/java/io/reactivex/rxjava3/exceptions/CompositeException.java>

Created a JIRA issue <https://issues.apache.org/jira/browse/LANG-1590> for
the same.

<https://github.com/ReactiveX/RxJava/blob/3.x/src/main/java/io/reactivex/rxjava3/exceptions/CompositeException.java>

On Fri, Jul 17, 2020 at 8:44 PM Gary Gregory <garydgreg...@gmail.com> wrote:

> Would it be like Common IO's IOExceptionList or Commons DBCP
> SQLExceptionList ?
>
> Gary
>
> On Fri, Jul 17, 2020 at 11:01 AM Adwait Kumar Singh <
> theadvaitkumarsi...@gmail.com> wrote:
>
> > To be more specific, I meant a util function in ExceptionUtils. Like
> this,
> >
> > ExceptionUtils.createCompositeException(String overallErrorMessage,
> > Throwable... throwables)
> >
> > This would return a CompositeException which would contain all the
> > Throwables and whose getCause() and printStackTrace() methods have been
> > overridden to given out a verbose cause and stacktrace which would be an
> > aggregation of the throwables supplied.
> >
> > Pardon me if this is not the correct platform or right mechanism to
> propose
> > such changes. Please let me know the correct way to proceed.
> >
> > Thanks,
> > Adwait.
> >
> > On Fri, Jul 17, 2020 at 5:18 PM Adwait Kumar Singh <
> > theadvaitkumarsi...@gmail.com> wrote:
> >
> > > Hi Commons devs,
> > >
> > > Use case : Ability to a single exceptions with multiple causes. This
> > > required in validation or initialization scenarios for example when I
> > want
> > > to Validation/Initialization failures for multiple reasons and each
> > reason
> > > having a unique cause.
> > > RxJava provides something similar
> > > <
> >
> https://github.com/ReactiveX/RxJava/blob/3.x/src/main/java/io/reactivex/rxjava3/exceptions/CompositeException.java
> > >
> > > .
> > >
> > > Wanted to know if this makes sense, would raise a PR if it does.
> > >
> > > Thanks,
> > > Adwait.
> > >
> >
>

Reply via email to