Archived

This forum has been archived. Please start a new discussion on GitHub.

exception chaining in Java

Hi

It does not appear possible to do exception chaining in Java with slice defined exceptions, as slice defined exceptions are not first class data types, is this correct?

Thanks,
Peter

Comments

  • If you mean by this that you cannot put an exception as a data member into another exception, you are right. The reason for this decision was that, in some languages, exceptions are not first-class types either, which would make it harder to map Slice to such languages.

    Cheers,

    Michi.