Does any other language than Java has the throws keyword to declare exceptions?
public boolean DoSomething() throws CustomEdgeCase { .... }
The compile tells me what exceptions I need to handle and so makes sure I do not forget about some edge cases.
This is not possible in e.g. C# or TypeScript. I wonder why? I find it very helpful to ensure software quality??
Am I wrong or why is this not adapted elsewhere?
Best Regards,
Oliver working on https://www.monsterwriter.app/