3 ms·
> You have no idea what throws and what doesn’t The answer here is that everything throws. Any code can have a Null/Nil dereference error, any code can use an
by adrianmsmith 2y ago
> You have no idea what throws and what doesn’t
The answer here is that everything throws.
Any code can have a Null/Nil dereference error, any code can use an array and generate an out-of-bounds exception, etc.
- skitter 2y agoWhen there's a null pointer dereference, that's a bug in the program; when closing a file fails, that's something external the program must handle.