ER-045 Throw too general exception type (Exception, Throwable, RuntimeException)

Severity2
Enabledyes
Waivable
Configuration
Not allowed exceptions:

RationaleApplication shall define exception handling strategy and own exception classes to throw,
Violation
public int getFirstByte(final String fName)throws Exception
Fix
public int getFirstByte(final String fName)throws HammurapiTestCasesException


Hammurapi 3 Copyright © 2004 Hammurapi Group. All Rights Reserved.