Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COThe main "problem" with Java's checked exceptions is the lack of a concise syntax to indicate that a called method isn't expected to throw certain (or any) exceptions. If even 25% of a method's callers would be interested in catching a particular exception, having it as a checked exception would be semantically advantageous, but for the fact that it would force a few lines of code bloat on each of the 75% of callers that weren't interested in it. As it is, checked exceptions are more of a hindrance than a help unless 90%+ of callers will be interested.
      singulars
    2. COI do agree with what you're saying, but I've also had to take over code that was written with Spring and unchecked exceptions, where the original author felt it necessary to implement a lot of his business logic in unchecked exceptions, years later we're STILL finding small libraries that were used throwing exceptions we had no idea might be tripped across.
      singulars
    3. COThe problem there I think is that there isn't with checked exceptions or a lack thereof, but rather with an exception hierarchy that doesn't distinguish between "Method failed with no side-effects; object appears undamaged" and "CPU is on fire". Any exception thrown by `myDocument = SomeDocumentClass.LoadDocument(filename);` will, at minimum, have the effect that `myDocument` won't get loaded; if the caller can deal with that, it should consider itself prepared to handle all exceptions where that is the only effect/implication, whether or not it anticipated the *particular* reason for failure.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload