News for hackers. Stuff that matters.
Re:Why Checked Exceptions Failed by necovek on Saturday July 15, 2023 @12:55PM (#36738754)
As others have pointed out, my example would have been better if it said `ExampleExceptionFoo, ExampleExceptionBar` to more clearly indicate that an interface would define what exceptions it could throw as part of the contract. Individual implementations could extend those base exceptions if they need to.

There is not much difference between this and using error types, except the syntax sugar.

There are no comments on this comment yet.