fb-contrib icon indicating copy to clipboard operation
fb-contrib copied to clipboard

BAD_PRACTICE when throwing sub classes of java.lang.Error

Open afrin216 opened this issue 7 years ago • 1 comments

What is your opinion on adding a detector under BAD_PRACTICE category for applications that

  • throw java.lang.Error or its sub-classes
  • try to catch/handle java.lang.Error or its sub-classes

Thanks Afrin

afrin216 avatar Apr 17 '17 15:04 afrin216

I agree catching error is wrong. Not sure about the throwing part. I'm OK with that in some cases

mebigfatguy avatar Apr 17 '17 16:04 mebigfatguy