Netflix / astyanax

Cassandra Java Client
Apache License 2.0
1.04k stars 355 forks source link

List of Exception Management Anti-Patterns and Code Smells #516

Open ashishsureka opened 10 years ago

ashishsureka commented 10 years ago

Code smells are defined as symptom s in the program source code which are usually not bugs or technically incorrect but indicates a possible deeper problem. Anti-patterns are counterparts of design patterns and are defined as mistakes during software development that produces negative consequences and is ineffective or counter-productive. During program execution, error events can occur that disrupts the normal flow of the program. Programming languages provide exception handling mechanism to developers for handling errors and exception events.

I mined the source-code for automatically detecting 10 exception handling anti-patterns (https://today.java.net/article/2006/04/04/exception-handling-antipatterns). In this issue report, I list the exception handling anti-patterns and code-smells that I found in the source code. My experimental results demonstrate presence of various exception handling anti-patterns and throw light on their intensity. I believe my tool for automatic detection of anti-patterns in source code and the attached results can be useful to programmers by helping them correct mistakes and write effective code.

1 Mining Source Code for Automatically Discovering Exception Management Anti-Patterns and Code Smell

2 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\AstyanaxConfiguration.java

3 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\ddl\ColumnFamilyDefinition.java

4 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\ddl\KeyspaceDefinition.java

5 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\impl\AckingQueue.java

6 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\impl\AstyanaxConfigurationImpl.java

7 METHOD NAME : getPartitioner(String partitionerName) throws Exception

8 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


9 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\mapping\MappingUtil.java

10 METHOD NAME : remove

11 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


12 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\mapping\MappingUtil.java

13 METHOD NAME : put(ColumnFamily<K,String> columnFamily,T item) throws Exception

14 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


15 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\mapping\MappingUtil.java

16 METHOD NAME : get(ColumnFamily<K,String> columnFamily,K id,Class itemClass) throws Exception

17 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


18 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\mapping\MappingUtil.java

19 METHOD NAME : getAll(ColumnFamily<K,String> columnFamily,Class itemClass) throws Exception

20 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


21 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\MutationBatch.java

22 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\query\CheckpointManager.java

23 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\serializers\AnnotatedCompositeSerializer.java

24 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); throw new RuntimeException(e); }

25 ANTI-PATTERN PSTE : printing stack-trace and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


26 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\serializers\AnnotatedCompositeSerializer.java

27 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); throw new RuntimeException(e); }

28 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


29 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\serializers\AnnotatedCompositeSerializer.java

30 CATCH CLAUSE : catch (Exception e) { throw new RuntimeException(e); }

31 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


32 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\serializers\AnnotatedCompositeSerializer.java

33 CATCH CLAUSE : catch (Exception e) { throw new RuntimeException(e); }

34 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


35 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\serializers\AnnotatedCompositeSerializer.java

36 CATCH CLAUSE : catch (Exception e) { throw new RuntimeException(e); }

37 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


38 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\serializers\JacksonSerializer.java

39 CATCH CLAUSE : catch (Exception e) { throw new RuntimeException("Error serializing entity ",e); }

40 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


41 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\serializers\JacksonSerializer.java

42 CATCH CLAUSE : catch (Exception e) { throw new RuntimeException("Error serializing entity ",e); }

43 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


44 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\serializers\ObjectSerializer.java

45 CATCH CLAUSE : catch (Exception ex) { throw new SerializationException(ex); }

46 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


47 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\serializers\SerializerPackageImpl.java

48 CATCH CLAUSE : catch (Exception e) { }

49 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


50 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\serializers\SerializerPackageImpl.java

51 CATCH CLAUSE : catch (Exception e) { }

52 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


53 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\serializers\SerializerPackageImpl.java

54 CATCH CLAUSE : catch (Exception e) { }

55 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


56 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\serializers\SerializerPackageImpl.java

57 CATCH CLAUSE : catch (Exception e) { }

58 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


59 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\test\EmbeddedCassandra.java

60 METHOD NAME : call() throws Exception

61 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


62 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\test\EmbeddedCassandra.java

63 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); }

64 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


65 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\BlockingAckingQueue.java

66 METHOD NAME : pushMutation(MutationBatch m) throws Exception

67 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


68 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\BlockingAckingQueue.java

69 METHOD NAME : ackMutation(MutationBatch m) throws Exception

70 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


71 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\BlockingAckingQueue.java

72 METHOD NAME : repushMutation(MutationBatch m) throws Exception

73 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


74 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\ColumnarRecordWriter.java

75 CATCH CLAUSE : catch (Exception e) { throw new RuntimeException(e); }

76 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


77 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

78 METHOD NAME : write(Rows<?,?> rows) throws Exception

79 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


80 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

81 CATCH CLAUSE : catch (Exception e) { if (!ignoreExceptions) { throw e; } }

82 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


83 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

84 CATCH CLAUSE : catch (Exception e) { if (!ignoreExceptions) { throw e; } }

85 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


86 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

87 METHOD NAME : writeColumnsAsRows(String rowKey,ColumnList<?> columns,boolean first) throws Exception

88 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


89 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

90 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); if (!ignoreExceptions) { throw e; } columnString=e.getMessage(); }

91 ANTI-PATTERN PSTE : printing stack-trace and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


92 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

93 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); if (!ignoreExceptions) { throw e; } columnString=e.getMessage(); }

94 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


95 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

96 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); if (!ignoreExceptions) { throw e; } valueString=e.getMessage(); }

97 ANTI-PATTERN PSTE : printing stack-trace and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


98 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

99 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); if (!ignoreExceptions) { throw e; } valueString=e.getMessage(); }

100 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


101 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

102 CATCH CLAUSE : catch (Exception e) { timestampString="none"; }

103 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


104 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

105 CATCH CLAUSE : catch (Exception e) { ttl=0; }

106 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


107 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

108 CATCH CLAUSE : catch (Exception e) { if (!ignoreExceptions) { throw e; } }

109 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


110 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

111 METHOD NAME : writeColumns(ColumnList<?> columns,boolean first) throws Exception

112 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


113 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

114 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); if (!ignoreExceptions) { throw e; } columnString=e.getMessage(); }

115 ANTI-PATTERN PSTE : printing stack-trace and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


116 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

117 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); if (!ignoreExceptions) { throw e; } columnString=e.getMessage(); }

118 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


119 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

120 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); if (!ignoreExceptions) { throw e; } valueString=e.getMessage(); }

121 ANTI-PATTERN PSTE : printing stack-trace and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


122 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

123 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); if (!ignoreExceptions) { throw e; } valueString=e.getMessage(); }

124 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


125 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

126 CATCH CLAUSE : catch (Exception e) { if (!ignoreExceptions) { throw e; } }

127 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


128 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

129 METHOD NAME : getColumnNamesFromMetadata() throws Exception

130 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


131 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

132 CATCH CLAUSE : catch (Exception e) { if (!ignoreExceptions) { throw e; } }

133 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


134 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

135 CATCH CLAUSE : catch (Exception e) { if (!ignoreExceptions) { throw e; } }

136 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


137 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

138 METHOD NAME : writeColumnNames(List names) throws Exception

139 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


140 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

141 CATCH CLAUSE : catch (Exception e) { }

142 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


143 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\JsonRowsWriter.java

144 CATCH CLAUSE : catch (Exception e) { if (!ignoreExceptions) { throw e; } }

145 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


146 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\MutationBatchExecutorWithQueue.java

147 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage(),e); failureCount.incrementAndGet(); if (e instanceof NoAvailableHostsException) { try { Thread.sleep(waitOnNoHosts); } catch ( InterruptedException e1) { Thread.currentThread().interrupt(); return; } continue; } else { if (!retryablePredicate.apply(e)) { try { queue.ackMutation(m); } catch ( Exception e1) { } } else { try { queue.repushMutation(m); } catch ( Exception e1) { } } m=null; } }

148 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


149 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\MutationBatchExecutorWithQueue.java

150 CATCH CLAUSE : catch (Exception e1) { }

151 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


152 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\MutationBatchExecutorWithQueue.java

153 CATCH CLAUSE : catch (Exception e1) { }

154 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


155 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\MutationBatchExecutorWithQueue.java

156 METHOD NAME : execute(MutationBatch m) throws Exception

157 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


158 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\RowsWriter.java

159 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\SingletonEmbeddedCassandra.java

160 CATCH CLAUSE : catch (Exception e) { throw new RuntimeException("Failed to start embedded cassandra",e); }

161 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


162 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\SingletonEmbeddedCassandra.java

163 CATCH CLAUSE : catch (Exception e) { }

164 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


165 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\WriteAheadMutationBatchExecutor.java

166 METHOD NAME : call() throws Exception

167 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


168 FILE NAME : astyanax-master\astyanax-cassandra\src\main\java\com\netflix\astyanax\util\WriteAheadMutationBatchExecutor.java

169 CATCH CLAUSE : catch (Exception e) { if (e instanceof NoAvailableHostsException) { Thread.sleep(waitOnNoHosts); } if (retryablePredicate.apply(e)) executor.submit(this); else wal.removeEntry(walEntry); throw e; }

170 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


171 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\connectionpool\impl\BaseConnectionPoolTest.java

172 CATCH CLAUSE : catch (Exception e) { }

173 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


174 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\connectionpool\impl\BaseConnectionPoolTest.java

175 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(e.getMessage()); }

176 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


177 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\connectionpool\impl\BaseConnectionPoolTest.java

178 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(e.getMessage()); }

179 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


180 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\connectionpool\impl\BaseConnectionPoolTest.java

181 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(e.getMessage()); }

182 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


183 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\connectionpool\impl\BaseConnectionPoolTest.java

184 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(e.getMessage()); }

185 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


186 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\connectionpool\impl\BaseConnectionPoolTest.java

187 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(e.getMessage()); }

188 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


189 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\connectionpool\impl\Stress.java

190 CATCH CLAUSE : catch (RuntimeException e) { if (e.getCause() instanceof ConnectionException) throw (ConnectionException)e.getCause(); throw e; }

191 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)


192 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\model\CompositeTest.java

193 METHOD NAME : testByteBufferOutputStream() throws Exception

194 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


195 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializerPackageImplTest.java

196 METHOD NAME : testSetCompositeKeyType() throws Exception

197 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


198 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializerPackageImplTest.java

199 METHOD NAME : testSetStandardKeyType() throws Exception

200 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


201 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializerPackageImplTest.java

202 METHOD NAME : testSetReversedColumnType() throws Exception

203 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


204 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

205 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); }

206 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


207 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

208 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); }

209 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


210 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

211 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

212 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


213 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

214 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

215 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


216 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

217 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

218 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


219 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

220 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

221 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


222 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

223 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

224 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


225 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

226 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

227 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


228 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

229 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage()); Assert.fail(); }

230 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


231 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

232 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage()); Assert.fail(); }

233 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


234 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

235 METHOD NAME : testStressAnnotatedCompositeSerializer() throws Exception

236 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


237 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

238 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); LOG.error(e.getMessage()); Assert.fail(); }

239 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


240 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

241 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage()); Assert.fail(); }

242 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


243 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

244 CATCH CLAUSE : catch (Exception e) { Assert.fail(); LOG.error(e.getMessage()); }

245 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


246 FILE NAME : astyanax-master\astyanax-cassandra\src\test\java\com\netflix\astyanax\serializers\SerializersTest.java

247 METHOD NAME : testDeserializeOfSepecificSerializer() throws Exception

248 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


249 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\connectionpool\impl\AbstractExecuteWithFailoverImpl.java

250 CATCH CLAUSE : catch (Exception e) { ConnectionException ce=(e instanceof ConnectionException) ? (ConnectionException)e : new UnknownException(e); try { informException(ce); monitor.incFailover(ce.getHost(),ce); } catch ( ConnectionException ex) { monitor.incOperationFailure(getCurrentHost(),ex); throw ex; } }

251 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


252 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\connectionpool\impl\AbstractHostPartitionConnectionPool.java

253 CATCH CLAUSE : catch (Exception e) { }

254 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


255 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\connectionpool\impl\ConnectionPoolMBeanManager.java

256 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage()); monitors.remove(monitorName); }

257 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


258 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\connectionpool\impl\ConnectionPoolMBeanManager.java

259 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage()); }

260 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


261 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\connectionpool\impl\NodeDiscoveryImpl.java

262 CATCH CLAUSE : catch (Exception e) { errorCounter.incrementAndGet(); lastException.set(e); }

263 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


264 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\connectionpool\impl\NodeDiscoveryImpl.java

265 CATCH CLAUSE : catch (Exception e) { return e.getMessage(); }

266 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


267 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\connectionpool\impl\NodeDiscoveryMonitorManager.java

268 CATCH CLAUSE : catch (Exception e) { monitors.remove(monitorName); }

269 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


270 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\connectionpool\impl\NodeDiscoveryMonitorManager.java

271 CATCH CLAUSE : catch (Exception e) { }

272 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


273 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\connectionpool\impl\SimpleHostConnectionPool.java

274 CATCH CLAUSE : catch (Exception e) { lastException=e; Thread.sleep(PRIME_CONNECTION_DELAY); i++; }

275 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


276 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\connectionpool\impl\SimpleHostConnectionPool.java

277 CATCH CLAUSE : catch (Exception e) { LOG.error("Failed to schedule retry task for " + host.getHostName(),e); }

278 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


279 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\connectionpool\impl\SimpleHostConnectionPool.java

280 METHOD NAME : reconnect() throws Exception

281 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


282 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\test\TestConnectionFactory.java

283 CATCH CLAUSE : catch (Exception e) { long now=System.nanoTime(); latency=now - startTime; ConnectionException connectionException; if (!(e instanceof ConnectionException)) connectionException=new UnknownException(e); else connectionException=(ConnectionException)e; connectionException.setLatency(latency); if (!(connectionException instanceof IsTimeoutException)) { pool.addLatencySample(latency,now); } else { pool.addLatencySample(TimeUnit.NANOSECONDS.convert(config.getSocketTimeout(),TimeUnit.MILLISECONDS),System.nanoTime()); } lastException=connectionException; throw lastException; }

284 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


285 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\test\TestConnectionFactory.java

286 CATCH CLAUSE : catch (Exception e) { callback.failure(This,new UnknownException("Error openning async connection",e)); }

287 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


288 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\util\BarrierCallableDecorator.java

289 METHOD NAME : call() throws Exception

290 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


291 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\util\BlockingConcurrentWindowCounter.java

292 METHOD NAME : incrementAndGet() throws Exception

293 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


294 FILE NAME : astyanax-master\astyanax-core\src\main\java\com\netflix\astyanax\util\BlockingConcurrentWindowCounter.java

295 METHOD NAME : incrementAndGet(long timeout,TimeUnit unit) throws Exception

296 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


297 FILE NAME : astyanax-master\astyanax-core\src\test\java\com\netflix\astyanax\connectionpool\impl\SimpleHostConnectionPoolTest.java

298 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage()); Assert.fail(); }

299 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


300 FILE NAME : astyanax-master\astyanax-core\src\test\java\com\netflix\astyanax\connectionpool\impl\SimpleHostConnectionPoolTest.java

301 METHOD NAME : testFailFirst() throws Exception

302 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


303 FILE NAME : astyanax-master\astyanax-core\src\test\java\com\netflix\astyanax\connectionpool\impl\SimpleHostConnectionPoolTest.java

304 CATCH CLAUSE : catch (Exception e) { Assert.fail(); }

305 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


306 FILE NAME : astyanax-master\astyanax-core\src\test\java\com\netflix\astyanax\connectionpool\impl\SimpleHostConnectionPoolTest.java

307 METHOD NAME : testAsyncOpenConnectionWithUnCheckedException() throws Exception

308 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


309 FILE NAME : astyanax-master\astyanax-core\src\test\java\com\netflix\astyanax\connectionpool\impl\SimpleHostConnectionPoolTest.java

310 METHOD NAME : testExcessiveTimeouts() throws Exception

311 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


312 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\ColumnMapper.java

313 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeColumnEntityMapper.java

314 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to fill mutation batch",e); }

315 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


316 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeColumnEntityMapper.java

317 CATCH CLAUSE : catch (Exception e) { throw new RuntimeException(e); }

318 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


319 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeColumnEntityMapper.java

320 METHOD NAME : setField(Object entity,ColumnList columns) throws Exception

321 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


322 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeColumnEntityMapper.java

323 METHOD NAME : setFieldFromCql(Object entity,ColumnList columns) throws Exception

324 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


325 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeColumnEntityMapper.java

326 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to construct entity",e); }

327 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


328 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeColumnEntityMapper.java

329 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to construct entity",e); }

330 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


331 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeColumnMapper.java

332 METHOD NAME : fillMutationBatch(Object entity,ColumnListMutation clm,String prefix) throws Exception

333 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


334 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeColumnMapper.java

335 METHOD NAME : setField(Object entity,Iterator name,com.netflix.astyanax.model.Column column) throws Exception

336 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


337 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeColumnMapper.java

338 METHOD NAME : validate(Object entity) throws Exception

339 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


340 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

341 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to put entity ",e); }

342 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


343 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

344 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to delete entity " + id,e); }

345 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


346 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

347 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to delete entity " + id,e); }

348 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


349 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

350 CATCH CLAUSE : catch (Exception e) { }

351 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


352 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

353 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to get entities " + ids,e); }

354 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


355 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

356 METHOD NAME : convertRowsToEntities(Rows<K,ByteBuffer> rows) throws Exception

357 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


358 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

359 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to delete entities " + ids,e); }

360 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


361 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

362 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to delete entities ",e); }

363 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


364 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

365 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to put entities ",e); }

366 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


367 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

368 CATCH CLAUSE : catch (Exception e) { }

369 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


370 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

371 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("Failed to fetch all entites",e); }

372 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


373 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

374 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("Failed to execute cql query",e); }

375 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


376 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

377 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("Error executing query",e); }

378 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


379 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

380 METHOD NAME : getResultSetById() throws Exception

381 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


382 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

383 METHOD NAME : getResultSetCounts() throws Exception

384 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


385 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityManager.java

386 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("Error executing query",e); }

387 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


388 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityMapper.java

389 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to fill mutation batch",e); }

390 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


391 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityMapper.java

392 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to fill mutation batch",e); }

393 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


394 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityMapper.java

395 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to fill mutation batch",e); }

396 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


397 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityMapper.java

398 CATCH CLAUSE : catch (Exception e) { throw new RuntimeException(e); }

399 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


400 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityMapper.java

401 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to construct entity",e); }

402 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


403 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityMapper.java

404 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to construct entity",e); }

405 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


406 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityMapper.java

407 METHOD NAME : getEntityId(T entity) throws Exception

408 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


409 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityMapper.java

410 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to construct entity",e); }

411 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


412 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\CompositeEntityMapper.java

413 CATCH CLAUSE : catch (Exception e) { throw new RuntimeException(String.format("Failed to serialize predicate '%s'",p.toString()),e); }

414 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


415 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\DefaultEntityManager.java

416 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to put entity ",e); }

417 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


418 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\DefaultEntityManager.java

419 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to get entity " + id,e); }

420 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


421 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\DefaultEntityManager.java

422 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to delete entity " + id,e); }

423 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


424 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\DefaultEntityManager.java

425 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to delete entity " + id,e); }

426 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


427 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\DefaultEntityManager.java

428 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to get entities " + ids,e); }

429 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


430 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\DefaultEntityManager.java

431 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to delete entities " + ids,e); }

432 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


433 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\DefaultEntityManager.java

434 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to delete entities ",e); }

435 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


436 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\DefaultEntityManager.java

437 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to put entities ",e); }

438 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


439 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\DefaultEntityManager.java

440 CATCH CLAUSE : catch (Exception e) { }

441 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


442 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\DefaultEntityManager.java

443 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("Failed to fetch all entites",e); }

444 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


445 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\DefaultEntityManager.java

446 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("Failed to execute cql query",e); }

447 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


448 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\EntityMapper.java

449 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to fill mutation batch",e); }

450 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


451 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\EntityMapper.java

452 CATCH CLAUSE : catch (Exception e) { throw new PersistenceException("failed to construct entity",e); }

453 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


454 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\EntityMapper.java

455 METHOD NAME : setField(T entity,Iterator name,com.netflix.astyanax.model.Column column) throws Exception

456 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


457 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\EntityMapper.java

458 METHOD NAME : getEntityId(T entity) throws Exception

459 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


460 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\LeafColumnMapper.java

461 METHOD NAME : fillMutationBatch(Object entity,ColumnListMutation clm,String prefix) throws Exception

462 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


463 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\LeafColumnMapper.java

464 METHOD NAME : setField(Object entity,Iterator name,com.netflix.astyanax.model.Column column) throws Exception

465 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


466 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\LeafColumnMapper.java

467 METHOD NAME : validate(Object entity) throws Exception

468 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


469 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\LifecycleEvents.java

470 METHOD NAME : onPrePersist(T obj) throws Exception

471 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


472 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\LifecycleEvents.java

473 METHOD NAME : onPostPersist(T obj) throws Exception

474 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


475 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\LifecycleEvents.java

476 METHOD NAME : onPreRemove(T obj) throws Exception

477 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


478 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\LifecycleEvents.java

479 METHOD NAME : onPostRemove(T obj) throws Exception

480 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


481 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\LifecycleEvents.java

482 METHOD NAME : onPostLoad(T obj) throws Exception

483 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


484 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\MapColumnMapper.java

485 METHOD NAME : fillMutationBatch(Object entity,ColumnListMutation clm,String prefix) throws Exception

486 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


487 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\MapColumnMapper.java

488 METHOD NAME : setField(Object entity,Iterator name,com.netflix.astyanax.model.Column column) throws Exception

489 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


490 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\MapColumnMapper.java

491 METHOD NAME : validate(Object entity) throws Exception

492 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


493 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\MappingUtils.java

494 CATCH CLAUSE : catch (Exception e) { throw new RuntimeException("Failed to get or invoke public static get() method",e); }

495 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


496 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\NativeQuery.java

497 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\SetColumnMapper.java

498 METHOD NAME : fillMutationBatch(Object entity,ColumnListMutation clm,String prefix) throws Exception

499 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


500 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\SetColumnMapper.java

501 METHOD NAME : setField(Object entity,Iterator name,com.netflix.astyanax.model.Column column) throws Exception

502 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


503 FILE NAME : astyanax-master\astyanax-entity-mapper\src\main\java\com\netflix\astyanax\entitystore\SetColumnMapper.java

504 METHOD NAME : validate(Object entity) throws Exception

505 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


506 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\CompositeEntityManagerTest.java

507 METHOD NAME : setup() throws Exception

508 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


509 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\CompositeEntityManagerTest.java

510 METHOD NAME : teardown() throws Exception

511 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


512 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\CompositeEntityManagerTest.java

513 METHOD NAME : createKeyspace() throws Exception

514 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


515 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\CompositeEntityManagerTest.java

516 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage(),e); }

517 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


518 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\CompositeEntityManagerTest.java

519 METHOD NAME : test() throws Exception

520 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


521 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\CompositeEntityManagerTest.java

522 METHOD NAME : testQuery() throws Exception

523 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


524 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\CompositeEntityManagerTest.java

525 METHOD NAME : testBadFieldName() throws Exception

526 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


527 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\CompositeEntityManagerTest.java

528 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage(),e); }

529 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


530 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerNullableTest.java

531 METHOD NAME : setup() throws Exception

532 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


533 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerNullableTest.java

534 METHOD NAME : teardown() throws Exception

535 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


536 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerNullableTest.java

537 METHOD NAME : createKeyspace() throws Exception

538 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


539 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerNullableTest.java

540 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); }

541 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


542 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerNullableTest.java

543 METHOD NAME : nullableColumn() throws Exception

544 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


545 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerNullableTest.java

546 METHOD NAME : expectNullColumnException() throws Exception

547 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


548 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerNullableTest.java

549 METHOD NAME : nullableNestedColumn() throws Exception

550 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


551 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerNullableTest.java

552 METHOD NAME : expectNullColumnExceptionNotnullableAllOptionalNestedEntity() throws Exception

553 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


554 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerNullableTest.java

555 METHOD NAME : expectNullColumnExceptionNotnullableAllMandatoryNestedEntity() throws Exception

556 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


557 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerNullableTest.java

558 METHOD NAME : expectNestedNullColumnExceptionNullableAllMandatoryNestedEntityNullChild() throws Exception

559 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


560 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTest.java

561 METHOD NAME : setup() throws Exception

562 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


563 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTest.java

564 METHOD NAME : teardown() throws Exception

565 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


566 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTest.java

567 METHOD NAME : createKeyspace() throws Exception

568 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


569 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTest.java

570 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); }

571 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


572 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTest.java

573 METHOD NAME : basicLifecycle() throws Exception

574 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


575 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTest.java

576 METHOD NAME : testMultiCalls() throws Exception

577 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


578 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTest.java

579 CATCH CLAUSE : catch (Exception e) { }

580 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


581 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTest.java

582 CATCH CLAUSE : catch (Exception e) { }

583 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


584 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTest.java

585 METHOD NAME : doubleIdColumnAnnotation() throws Exception

586 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


587 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTtlTest.java

588 METHOD NAME : setup() throws Exception

589 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


590 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTtlTest.java

591 METHOD NAME : teardown() throws Exception

592 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


593 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTtlTest.java

594 METHOD NAME : createKeyspace() throws Exception

595 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


596 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTtlTest.java

597 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); }

598 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


599 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTtlTest.java

600 METHOD NAME : testTtlClassAnnotation() throws Exception

601 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


602 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTtlTest.java

603 METHOD NAME : testConstructorTtlOverride() throws Exception

604 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


605 FILE NAME : astyanax-master\astyanax-entity-mapper\src\test\java\com\netflix\astyanax\entitystore\DefaultEntityManagerTtlTest.java

606 METHOD NAME : testMethodTtlOverride() throws Exception

607 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


608 FILE NAME : astyanax-master\astyanax-examples\src\main\java\com\netflix\astyanax\examples\AstClient.java

609 CATCH CLAUSE : catch (ConnectionException e) { logger.error("failed to write data to C",e); throw new RuntimeException("failed to write data to C",e); }

610 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


611 FILE NAME : astyanax-master\astyanax-examples\src\main\java\com\netflix\astyanax\examples\AstClient.java

612 CATCH CLAUSE : catch (ConnectionException e) { logger.error("failed to read from C",e); throw new RuntimeException("failed to read from C",e); }

613 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


614 FILE NAME : astyanax-master\astyanax-examples\src\main\java\com\netflix\astyanax\examples\AstCQLClient.java

615 CATCH CLAUSE : catch (ConnectionException e) { logger.error("failed to write data to C",e); throw new RuntimeException("failed to write data to C",e); }

616 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


617 FILE NAME : astyanax-master\astyanax-examples\src\main\java\com\netflix\astyanax\examples\AstCQLClient.java

618 CATCH CLAUSE : catch (ConnectionException e) { logger.error("failed to write data to C",e); throw new RuntimeException("failed to write data to C",e); }

619 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


620 FILE NAME : astyanax-master\astyanax-examples\src\main\java\com\netflix\astyanax\examples\AstCQLClient.java

621 CATCH CLAUSE : catch (ConnectionException e) { logger.error("failed to create CF",e); throw new RuntimeException("failed to create CF",e); }

622 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


623 FILE NAME : astyanax-master\astyanax-examples\src\main\java\com\netflix\astyanax\examples\AstCQLClient.java

624 CATCH CLAUSE : catch (ConnectionException e) { logger.error("failed to read from C",e); throw new RuntimeException("failed to read from C",e); }

625 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


626 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\MessageConsumerImpl.java

627 CATCH CLAUSE : catch (Exception e) { LOG.error("Error reading shard " + shardName,e); throw new MessageQueueException("Error",e); }

628 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


629 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\MessageConsumerImpl.java

630 CATCH CLAUSE : catch (Exception e) { throw new MessageQueueException("Error committing lock",e); }

631 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


632 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\MessageConsumerImpl.java

633 CATCH CLAUSE : catch (Exception e) { LOG.warn("Error serializing message history for " + message.getKey(),e); }

634 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


635 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\MessageConsumerImpl.java

636 CATCH CLAUSE : catch (Exception e) { LOG.warn("Error serializing history for key '" + message.getKey() + "'",e); }

637 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


638 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\MessageConsumerImpl.java

639 CATCH CLAUSE : catch (Exception e) { throw new MessageQueueException("Error processing queue shard : " + shardName,e); }

640 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


641 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\MessageConsumerImpl.java

642 CATCH CLAUSE : catch (Exception e) { throw new MessageQueueException("Error processing queue shard : " + shardName,e); }

643 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


644 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\MessageHandlerFactory.java

645 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\ShardedDistributedMessageQueue.java

646 CATCH CLAUSE : catch (Exception e) { LOG.warn("Error parsing message",e); try { return invalidMessageHandler.apply(column.getStringValue()); } catch ( Exception e2) { LOG.warn("Error handling invalid message message",e2); throw new MessageQueueException("Error parsing message " + messageId); } }

647 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


648 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\ShardedDistributedMessageQueue.java

649 CATCH CLAUSE : catch (Exception e2) { LOG.warn("Error handling invalid message message",e2); throw new MessageQueueException("Error parsing message " + messageId); }

650 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


651 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\ShardedDistributedMessageQueue.java

652 CATCH CLAUSE : catch (NotFoundException e) { return null; }

653 ANTI-PATTERN RNHR : just returns null instead of handling or re-throwing the exception, swallows the exception, losing the information forever


654 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\ShardedDistributedMessageQueue.java

655 CATCH CLAUSE : catch (NotFoundException e) { return null; }

656 ANTI-PATTERN RNHR : just returns null instead of handling or re-throwing the exception, swallows the exception, losing the information forever


657 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\ShardedDistributedMessageQueue.java

658 CATCH CLAUSE : catch (Exception e) { if (e.getMessage().contains("already exist")) return; throw new MessageQueueException("Failed to create column family for " + queueColumnFamily.getName(),e); }

659 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


660 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\ShardedDistributedMessageQueue.java

661 METHOD NAME : call() throws Exception

662 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


663 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\ShardedDistributedMessageQueue.java

664 METHOD NAME : call() throws Exception

665 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


666 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\ShardedDistributedMessageQueue.java

667 METHOD NAME : call() throws Exception

668 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


669 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\ShardedDistributedMessageQueue.java

670 CATCH CLAUSE : catch (Exception e) { throw new MessageQueueException("Error serializing queue settings " + queueColumnFamily.getName(),e); }

671 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


672 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\ShardedDistributedMessageQueue.java

673 CATCH CLAUSE : catch (Exception e) { throw new MessageQueueException("Failed to serialize message data: " + message,e); }

674 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


675 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\ShardedDistributedMessageQueue.java

676 CATCH CLAUSE : catch (Exception e) { LOG.info("Error deserializing history entry",e); }

677 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


678 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\ShardedDistributedMessageQueue.java

679 CATCH CLAUSE : catch (Exception e) { LOG.warn("Error processing message ",e); try { message=invalidMessageHandler.apply(column.getStringValue()); } catch ( Exception e2) { LOG.warn("Error processing invalid message",e2); } }

680 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


681 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\ShardedDistributedMessageQueue.java

682 CATCH CLAUSE : catch (Exception e2) { LOG.warn("Error processing invalid message",e2); }

683 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


684 FILE NAME : astyanax-master\astyanax-queue\src\main\java\com\netflix\astyanax\recipes\queue\SimpleMessageHandlerFactory.java

685 METHOD NAME : createInstance(String className) throws Exception

686 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


687 FILE NAME : astyanax-master\astyanax-queue\src\test\java\com\netflix\astyanax\thrift\QueueTest.java

688 METHOD NAME : setup() throws Exception

689 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


690 FILE NAME : astyanax-master\astyanax-queue\src\test\java\com\netflix\astyanax\thrift\QueueTest.java

691 METHOD NAME : createKeyspace() throws Exception

692 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


693 FILE NAME : astyanax-master\astyanax-queue\src\test\java\com\netflix\astyanax\thrift\QueueTest.java

694 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

695 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


696 FILE NAME : astyanax-master\astyanax-queue\src\test\java\com\netflix\astyanax\thrift\QueueTest.java

697 METHOD NAME : teardown() throws Exception

698 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


699 FILE NAME : astyanax-master\astyanax-queue\src\test\java\com\netflix\astyanax\thrift\QueueTest.java

700 METHOD NAME : testRepeatingMessage() throws Exception

701 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


702 FILE NAME : astyanax-master\astyanax-queue\src\test\java\com\netflix\astyanax\thrift\QueueTest.java

703 METHOD NAME : testNoKeyQueue() throws Exception

704 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


705 FILE NAME : astyanax-master\astyanax-queue\src\test\java\com\netflix\astyanax\thrift\QueueTest.java

706 METHOD NAME : testQueue() throws Exception

707 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


708 FILE NAME : astyanax-master\astyanax-queue\src\test\java\com\netflix\astyanax\thrift\QueueTest.java

709 METHOD NAME : testStressQueue() throws Exception

710 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


711 FILE NAME : astyanax-master\astyanax-queue\src\test\java\com\netflix\astyanax\thrift\QueueTest.java

712 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); }

713 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


714 FILE NAME : astyanax-master\astyanax-queue\src\test\java\com\netflix\astyanax\thrift\QueueTest.java

715 METHOD NAME : testQueueBusyLock() throws Exception

716 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


717 FILE NAME : astyanax-master\astyanax-queue\src\test\java\com\netflix\astyanax\thrift\QueueTest.java

718 CATCH CLAUSE : catch (Exception e) { throw new BusyLockException("Could not lock shard " + shardName,e); }

719 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


720 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\functions\RowCopierFunction.java

721 CATCH CLAUSE : catch (Exception e) { LOG.error("Failed to write mutation",e); return false; }

722 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


723 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\ColumnPrefixDistributedRowLock.java

724 METHOD NAME : acquire() throws Exception

725 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


726 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\ColumnPrefixDistributedRowLock.java

727 METHOD NAME : acquireLockAndReadRow() throws Exception

728 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


729 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\ColumnPrefixDistributedRowLock.java

730 METHOD NAME : verifyLock(long curTimeInMicros) throws Exception, BusyLockException, StaleLockException

731 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


732 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\ColumnPrefixDistributedRowLock.java

733 METHOD NAME : release() throws Exception

734 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


735 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\ColumnPrefixDistributedRowLock.java

736 METHOD NAME : releaseWithMutation(MutationBatch m) throws Exception

737 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


738 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\ColumnPrefixDistributedRowLock.java

739 METHOD NAME : releaseWithMutation(MutationBatch m,boolean force) throws Exception

740 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


741 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\ColumnPrefixDistributedRowLock.java

742 METHOD NAME : readLockColumns() throws Exception

743 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


744 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\ColumnPrefixDistributedRowLock.java

745 METHOD NAME : readLockColumns(boolean readDataColumns) throws Exception

746 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


747 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\ColumnPrefixDistributedRowLock.java

748 METHOD NAME : releaseAllLocks() throws Exception

749 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


750 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\ColumnPrefixDistributedRowLock.java

751 METHOD NAME : releaseExpiredLocks() throws Exception

752 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


753 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\ColumnPrefixDistributedRowLock.java

754 METHOD NAME : releaseLocks(boolean force) throws Exception

755 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


756 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\DistributedRowLock.java

757 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\OneStepDistributedRowLock.java

758 METHOD NAME : acquire() throws Exception

759 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


760 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\OneStepDistributedRowLock.java

761 METHOD NAME : acquireLockAndReadRow() throws Exception

762 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


763 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\OneStepDistributedRowLock.java

764 METHOD NAME : verifyLock(long curTimeInMicros) throws Exception, BusyLockException, StaleLockException

765 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


766 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\OneStepDistributedRowLock.java

767 METHOD NAME : release() throws Exception

768 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


769 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\OneStepDistributedRowLock.java

770 METHOD NAME : releaseWithMutation(MutationBatch m) throws Exception

771 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


772 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\OneStepDistributedRowLock.java

773 METHOD NAME : releaseWithMutation(MutationBatch m,boolean force) throws Exception

774 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


775 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\OneStepDistributedRowLock.java

776 METHOD NAME : readLockColumns() throws Exception

777 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


778 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\OneStepDistributedRowLock.java

779 METHOD NAME : readLockColumns(boolean readDataColumns) throws Exception

780 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


781 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\OneStepDistributedRowLock.java

782 METHOD NAME : releaseAllLocks() throws Exception

783 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


784 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\OneStepDistributedRowLock.java

785 METHOD NAME : releaseExpiredLocks() throws Exception

786 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


787 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\locks\OneStepDistributedRowLock.java

788 METHOD NAME : releaseLocks(boolean force) throws Exception

789 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


790 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\reader\AllRowsReader.java

791 CATCH CLAUSE : catch (Exception e) { error.compareAndSet(null,e); LOG.error("Failed to get checkpoint for startToken " + startToken,e); cancel(); throw new RuntimeException("Failed to get checkpoint for startToken " + startToken,e); }

792 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


793 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\reader\AllRowsReader.java

794 CATCH CLAUSE : catch (Exception e) { error.compareAndSet(null,e); LOG.warn(e.getMessage(),e); cancel(); throw new RuntimeException("Error processing row",e); }

795 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


796 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\reader\AllRowsReader.java

797 CATCH CLAUSE : catch (Exception e) { error.compareAndSet(null,e); LOG.error("Error process token/key range",e); cancel(); throw new RuntimeException("Error process token/key range",e); }

798 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


799 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\reader\AllRowsReader.java

800 METHOD NAME : call() throws Exception

801 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


802 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\reader\AllRowsReader.java

803 CATCH CLAUSE : catch (Exception e) { error.compareAndSet(null,e); LOG.warn("AllRowsReader terminated. " + e.getMessage(),e); cancel(); throw error.get(); }

804 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


805 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\reader\AllRowsReader.java

806 METHOD NAME : waitForTasksToFinish() throws Exception

807 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


808 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\reader\AllRowsReader.java

809 CATCH CLAUSE : catch (Exception e) { error.compareAndSet(null,e); cancel(); succeeded=false; exCount++; sb.append("ex" + exCount + ": ").append(e.getMessage()).append("\n"); StackTraceElement[] stackTrace=e.getStackTrace(); if (stackTrace != null && stackTrace.length > 0) { StackTraceElement delimiterSE=new StackTraceElement("StackTrace: ex" + exCount,"","",0); stackTraces.add(delimiterSE); for ( StackTraceElement se : stackTrace) { stackTraces.add(se); } } }

810 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


811 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\CassandraChunkedStorageProvider.java

812 METHOD NAME : writeChunk(String objectName,int chunkId,ByteBuffer data,Integer ttl) throws Exception

813 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


814 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\CassandraChunkedStorageProvider.java

815 METHOD NAME : readChunk(String objectName,int chunkId) throws Exception

816 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


817 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\CassandraChunkedStorageProvider.java

818 METHOD NAME : writeMetadata(String objectName,ObjectMetadata objMetaData) throws Exception

819 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


820 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\CassandraChunkedStorageProvider.java

821 METHOD NAME : readMetadata(String objectName) throws Exception, NotFoundException

822 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


823 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\CassandraChunkedStorageProvider.java

824 METHOD NAME : deleteObject(String objectName,Integer chunkCount) throws Exception, NotFoundException

825 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


826 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\ChunkedStorageProvider.java

827 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\ObjectDeleter.java

828 METHOD NAME : call() throws Exception

829 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


830 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\ObjectDirectoryLister.java

831 METHOD NAME : call() throws Exception

832 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


833 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\ObjectInfoReader.java

834 METHOD NAME : call() throws Exception

835 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


836 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\ObjectReader.java

837 METHOD NAME : call() throws Exception

838 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


839 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\ObjectReader.java

840 CATCH CLAUSE : catch (Exception e) { LOG.warn(e.getMessage()); if (!retry.allowRetry()) throw e; }

841 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


842 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\ObjectReader.java

843 CATCH CLAUSE : catch (Exception e) { callback.onChunkException(chunkId,e); if (retry.allowRetry()) continue; exception.compareAndSet(null,e); }

844 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


845 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\ObjectReader.java

846 CATCH CLAUSE : catch (Exception e) { callback.onFailure(e); throw e; }

847 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


848 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\ObjectWriter.java

849 METHOD NAME : call() throws Exception

850 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


851 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\ObjectWriter.java

852 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage()); exception.compareAndSet(null,e); callback.onChunkException(chunkNumber,e); }

853 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


854 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\ObjectWriter.java

855 CATCH CLAUSE : catch (Exception e) { callback.onFailure(e); LOG.warn(e.getMessage()); e.printStackTrace(); try { provider.deleteObject(objectName,nChunksWritten.get() + concurrencyLevel); } catch ( Exception e2) { LOG.warn(e2.getMessage()); } throw e; }

856 ANTI-PATTERN PSTE : printing stack-trace and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)


857 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\ObjectWriter.java

858 CATCH CLAUSE : catch (Exception e) { callback.onFailure(e); LOG.warn(e.getMessage()); e.printStackTrace(); try { provider.deleteObject(objectName,nChunksWritten.get() + concurrencyLevel); } catch ( Exception e2) { LOG.warn(e2.getMessage()); } throw e; }

859 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


860 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\storage\ObjectWriter.java

861 CATCH CLAUSE : catch (Exception e2) { LOG.warn(e2.getMessage()); }

862 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


863 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\ColumnPrefixUniquenessConstraint.java

864 METHOD NAME : readUniqueColumn() throws Exception

865 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


866 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\ColumnPrefixUniquenessConstraint.java

867 METHOD NAME : acquire() throws NotUniqueException, Exception

868 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


869 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\ColumnPrefixUniquenessConstraint.java

870 METHOD NAME : acquireAndMutate(MutationBatch m) throws NotUniqueException, Exception

871 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


872 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\ColumnPrefixUniquenessConstraint.java

873 METHOD NAME : acquireAndApplyMutation(Function<MutationBatch,Boolean> callback) throws NotUniqueException, Exception

874 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


875 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\ColumnPrefixUniquenessConstraint.java

876 METHOD NAME : release() throws Exception

877 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


878 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\DedicatedMultiRowUniquenessConstraint.java

879 METHOD NAME : verifyLock() throws Exception

880 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


881 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\DedicatedMultiRowUniquenessConstraint.java

882 METHOD NAME : acquire() throws NotUniqueException, Exception

883 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


884 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\DedicatedMultiRowUniquenessConstraint.java

885 METHOD NAME : acquireAndMutate(final MutationBatch other) throws NotUniqueException, Exception

886 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


887 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\DedicatedMultiRowUniquenessConstraint.java

888 METHOD NAME : acquireAndApplyMutation(Function<MutationBatch,Boolean> callback) throws NotUniqueException, Exception

889 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


890 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\DedicatedMultiRowUniquenessConstraint.java

891 CATCH CLAUSE : catch (Exception e) { release(); throw e; }

892 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


893 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\DedicatedMultiRowUniquenessConstraint.java

894 METHOD NAME : release() throws Exception

895 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


896 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\DedicatedMultiRowUniquenessConstraint.java

897 METHOD NAME : getUniqueColumn() throws Exception

898 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


899 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\MultiRowUniquenessConstraint.java

900 METHOD NAME : acquire() throws NotUniqueException, Exception

901 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


902 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\MultiRowUniquenessConstraint.java

903 METHOD NAME : acquireAndApplyMutation(Function<MutationBatch,Boolean> callback) throws NotUniqueException, Exception

904 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


905 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\MultiRowUniquenessConstraint.java

906 CATCH CLAUSE : catch (Exception e) { release(); throw e; }

907 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


908 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\MultiRowUniquenessConstraint.java

909 METHOD NAME : acquireAndMutate(final MutationBatch mutation) throws NotUniqueException, Exception

910 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


911 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\MultiRowUniquenessConstraint.java

912 METHOD NAME : release() throws Exception

913 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


914 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\RowUniquenessConstraint.java

915 METHOD NAME : acquire() throws NotUniqueException, Exception

916 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


917 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\RowUniquenessConstraint.java

918 METHOD NAME : acquireAndMutate(final MutationBatch mutation) throws NotUniqueException, Exception

919 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


920 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\RowUniquenessConstraint.java

921 METHOD NAME : acquireAndApplyMutation(Function<MutationBatch,Boolean> callback) throws NotUniqueException, Exception

922 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


923 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\RowUniquenessConstraint.java

924 CATCH CLAUSE : catch (Exception e) { release(); throw e; }

925 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


926 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\RowUniquenessConstraint.java

927 METHOD NAME : release() throws Exception

928 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


929 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\RowUniquenessConstraint.java

930 METHOD NAME : readData() throws Exception

931 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


932 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\RowUniquenessConstraint.java

933 METHOD NAME : readDataAsString() throws Exception

934 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


935 FILE NAME : astyanax-master\astyanax-recipes\src\main\java\com\netflix\astyanax\recipes\uniqueness\UniquenessConstraint.java

936 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

937 METHOD NAME : setup() throws Exception

938 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


939 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

940 METHOD NAME : createKeyspace() throws Exception

941 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


942 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

943 CATCH CLAUSE : catch (Exception e) { }

944 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


945 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

946 METHOD NAME : testTtl() throws Exception

947 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


948 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

949 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

950 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


951 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

952 METHOD NAME : testTtlString() throws Exception

953 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


954 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

955 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

956 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


957 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

958 METHOD NAME : testStaleLockWithFail() throws Exception

959 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


960 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

961 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

962 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


963 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

964 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

965 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


966 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

967 METHOD NAME : testStaleLockWithFail_String() throws Exception

968 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


969 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

970 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

971 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


972 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

973 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

974 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


975 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

976 METHOD NAME : testStaleLock() throws Exception

977 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


978 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

979 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

980 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


981 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

982 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(e.getMessage()); }

983 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


984 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

985 METHOD NAME : testStaleLock_String() throws Exception

986 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


987 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

988 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

989 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


990 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

991 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(e.getMessage()); }

992 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


993 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\LockRecipeTest.java

994 METHOD NAME : testLockAndMutate() throws Exception

995 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


996 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

997 METHOD NAME : setup() throws Exception

998 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


999 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1000 METHOD NAME : teardown() throws Exception

1001 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1002 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1003 METHOD NAME : createKeyspace() throws Exception

1004 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1005 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1006 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

1007 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1008 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1009 CATCH CLAUSE : catch (Exception e) { System.out.println(e.getMessage()); Assert.fail(); }

1010 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1011 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1012 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

1013 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1014 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1015 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(); }

1016 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1017 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1018 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(); }

1019 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1020 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1021 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(); }

1022 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1023 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1024 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(); }

1025 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1026 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1027 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(); }

1028 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1029 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1030 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(); }

1031 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1032 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1033 METHOD NAME : testTtl() throws Exception

1034 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1035 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1036 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

1037 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1038 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1039 METHOD NAME : testTtlString() throws Exception

1040 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1041 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1042 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

1043 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1044 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1045 METHOD NAME : testStaleLockWithFail() throws Exception

1046 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1047 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1048 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

1049 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1050 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1051 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

1052 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1053 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1054 METHOD NAME : testStaleLockWithFail_String() throws Exception

1055 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1056 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1057 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

1058 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1059 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1060 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

1061 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1062 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1063 METHOD NAME : testStaleLock() throws Exception

1064 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1065 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1066 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

1067 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1068 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1069 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(e.getMessage()); }

1070 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1071 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1072 METHOD NAME : testStaleLock_String() throws Exception

1073 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1074 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1075 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

1076 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1077 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1078 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(e.getMessage()); }

1079 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1080 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1081 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

1082 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1083 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1084 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

1085 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1086 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1087 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage()); Assert.fail(); }

1088 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1089 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1090 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage()); Assert.fail(); }

1091 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1092 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1093 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage()); Assert.fail(); }

1094 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1095 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1096 METHOD NAME : testRowUniquenessConstraint() throws Exception

1097 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1098 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1099 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

1100 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1101 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1102 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); Assert.fail(e.getMessage()); LOG.error(e.getMessage()); }

1103 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1104 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1105 CATCH CLAUSE : catch (Exception e) { LOG.info("",e); }

1106 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1107 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1108 METHOD NAME : testPrefixUniquenessConstraint() throws Exception

1109 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1110 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1111 CATCH CLAUSE : catch (Exception e) { }

1112 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1113 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1114 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); LOG.error(e.getMessage()); }

1115 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1116 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1117 CATCH CLAUSE : catch (Exception e) { }

1118 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1119 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1120 METHOD NAME : testPrefixUniquenessConstraintWithColumn() throws Exception

1121 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1122 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1123 CATCH CLAUSE : catch (Exception e) { }

1124 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1125 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1126 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); LOG.error(e.getMessage()); }

1127 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1128 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1129 METHOD NAME : testAcquireAndMutate() throws Exception

1130 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1131 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1132 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); LOG.error("",e); Assert.fail(); }

1133 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1134 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1135 METHOD NAME : testAllRowsReader() throws Exception

1136 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1137 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1138 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage(),e); Assert.fail(e.getMessage()); }

1139 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1140 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1141 METHOD NAME : testAllRowsReaderCopier() throws Exception

1142 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1143 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1144 METHOD NAME : testAllRowsReaderConcurrency12() throws Exception

1145 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1146 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1147 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage(),e); Assert.fail(e.getMessage()); }

1148 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1149 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1150 METHOD NAME : testAllRowsReaderWithCancel() throws Exception

1151 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1152 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1153 CATCH CLAUSE : catch (Exception e) { LOG.info("Failed to execute",e); }

1154 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1155 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1156 METHOD NAME : testAllRowsReaderWithException() throws Exception

1157 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1158 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\MiscUnitTest.java

1159 CATCH CLAUSE : catch (Exception e) { Assert.assertTrue(e.getMessage().contains("Very bad")); LOG.info("Failed to execute",e); }

1160 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1161 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\ReverseIndexQueryTest.java

1162 METHOD NAME : setup() throws Exception

1163 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1164 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\ReverseIndexQueryTest.java

1165 METHOD NAME : populateKeyspace() throws Exception

1166 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1167 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\ReverseIndexQueryTest.java

1168 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage()); Assert.fail(); }

1169 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1170 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\ReverseIndexQueryTest.java

1171 METHOD NAME : testReverseIndex() throws Exception

1172 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1173 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\UniquenessConstraintTest.java

1174 METHOD NAME : setup() throws Exception

1175 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1176 FILE NAME : astyanax-master\astyanax-recipes\src\test\java\com\netflix\astyanax\recipes\UniquenessConstraintTest.java

1177 METHOD NAME : testUniqueness() throws Exception

1178 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1179 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\AbstractOperationImpl.java

1180 CATCH CLAUSE : catch (Exception e) { ConnectionException ce=ThriftConverter.ToConnectionPoolException(e); tracer.failure(ce); throw ce; }

1181 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1182 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\AbstractOperationImpl.java

1183 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\AbstractThriftCqlQuery.java

1184 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1185 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1186 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\AbstractThriftCqlQuery.java

1187 METHOD NAME : call() throws Exception

1188 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1189 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\AbstractThriftCqlQuery.java

1190 METHOD NAME : internalExecute(Client client,ConnectionContext state) throws Exception

1191 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1192 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\AbstractThriftCqlQuery.java

1193 METHOD NAME : call() throws Exception

1194 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1195 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\AbstractThriftMutationBatchImpl.java

1196 METHOD NAME : serialize() throws Exception

1197 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1198 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\AbstractThriftMutationBatchImpl.java

1199 METHOD NAME : deserialize(ByteBuffer data) throws Exception

1200 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1201 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ddl\ThriftColumnFamilyDefinitionImpl.java

1202 METHOD NAME : getProperties() throws Exception

1203 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1204 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ddl\ThriftColumnFamilyDefinitionImpl.java

1205 METHOD NAME : setProperties(Properties properties) throws Exception

1206 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1207 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ddl\ThriftKeyspaceDefinitionImpl.java

1208 METHOD NAME : getProperties() throws Exception

1209 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1210 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ddl\ThriftKeyspaceDefinitionImpl.java

1211 METHOD NAME : setProperties(Properties properties) throws Exception

1212 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1213 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftAllRowsQueryImpl.java

1214 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1215 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1216 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftAllRowsQueryImpl.java

1217 CATCH CLAUSE : catch (Exception e) { throw ThriftConverter.ToConnectionPoolException(e); }

1218 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1219 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftAllRowsQueryImpl.java

1220 METHOD NAME : call() throws Exception

1221 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1222 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftAllRowsQueryImpl.java

1223 METHOD NAME : internalRun() throws Exception

1224 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1225 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftAllRowsQueryImpl.java

1226 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1227 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1228 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftAllRowsQueryImpl.java

1229 CATCH CLAUSE : catch (Exception e) { ConnectionException ce=ThriftConverter.ToConnectionPoolException(e); if (!callback.failure(ce)) { error.set(ce); return false; } }

1230 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1231 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1232 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1233 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1234 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1235 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1236 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1237 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1238 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1239 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1240 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1241 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1242 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1243 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1244 METHOD NAME : internalExecute(Client client,ConnectionContext state) throws Exception

1245 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1246 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1247 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1248 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1249 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1250 CATCH CLAUSE : catch (Exception e) { throw new BadRequestException("Error converting properties to CfDef",e); }

1251 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1252 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1253 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1254 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1255 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1256 CATCH CLAUSE : catch (Exception e) { throw new BadRequestException("Error converting properties to CfDef",e); }

1257 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1258 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1259 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1260 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1261 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1262 CATCH CLAUSE : catch (Exception e) { throw new BadRequestException("Error converting properties to KsDef",e); }

1263 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1264 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1265 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1266 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1267 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1268 CATCH CLAUSE : catch (Exception e) { throw new BadRequestException("Error converting properties to KsDef",e); }

1269 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1270 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1271 CATCH CLAUSE : catch (Exception e) { throw new BadRequestException("Error converting properties to KsDef",e); }

1272 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1273 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1274 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1275 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1276 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1277 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1278 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1279 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1280 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1281 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1282 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1283 CATCH CLAUSE : catch (Exception e) { }

1284 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1285 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1286 CATCH CLAUSE : catch (Exception e) { LOG.error(String.format("Error fetching properties for keyspace '%s'",keyspace)); }

1287 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1288 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1289 CATCH CLAUSE : catch (Exception e) { LOG.error("Error processing column family properties"); }

1290 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1291 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftClusterImpl.java

1292 METHOD NAME : precheckSchemaAgreement(Client client) throws Exception

1293 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1294 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1295 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1296 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1297 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1298 METHOD NAME : call() throws Exception

1299 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1300 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1301 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1302 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1303 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1304 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1305 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1306 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1307 METHOD NAME : call() throws Exception

1308 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1309 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1310 METHOD NAME : call() throws Exception

1311 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1312 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1313 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1314 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1315 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1316 METHOD NAME : call() throws Exception

1317 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1318 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1319 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1320 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1321 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1322 METHOD NAME : call() throws Exception

1323 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1324 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1325 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1326 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1327 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1328 METHOD NAME : call() throws Exception

1329 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1330 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1331 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1332 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1333 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1334 METHOD NAME : call() throws Exception

1335 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1336 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1337 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1338 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1339 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1340 METHOD NAME : call() throws Exception

1341 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1342 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1343 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1344 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1345 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1346 METHOD NAME : call() throws Exception

1347 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1348 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1349 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1350 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1351 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftColumnFamilyQueryImpl.java

1352 METHOD NAME : call() throws Exception

1353 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1354 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftCql3Statement.java

1355 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1356 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1357 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftCqlStatement.java

1358 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1359 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1360 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1361 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1362 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1363 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1364 CATCH CLAUSE : catch (Exception exception) { throw ThriftConverter.ToConnectionPoolException(exception); }

1365 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1366 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1367 METHOD NAME : call() throws Exception

1368 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1369 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1370 METHOD NAME : internalExecute(Cassandra.Client client,ConnectionContext context) throws Exception

1371 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1372 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1373 METHOD NAME : call() throws Exception

1374 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1375 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1376 METHOD NAME : internalExecute(Cassandra.Client client,ConnectionContext context) throws Exception

1377 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1378 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1379 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1380 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1381 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1382 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1383 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1384 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1385 METHOD NAME : call() throws Exception

1386 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1387 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1388 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1389 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1390 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1391 METHOD NAME : call() throws Exception

1392 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1393 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1394 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1395 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1396 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1397 METHOD NAME : call() throws Exception

1398 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1399 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1400 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1401 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1402 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1403 METHOD NAME : call() throws Exception

1404 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1405 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1406 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1407 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1408 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1409 METHOD NAME : internalExecute(Cassandra.Client client,ConnectionContext context) throws Exception

1410 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1411 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1412 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1413 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1414 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1415 METHOD NAME : call() throws Exception

1416 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1417 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1418 METHOD NAME : call() throws Exception

1419 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1420 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1421 CATCH CLAUSE : catch (Exception e) { throw new BadRequestException("Unable to convert props to keyspace definition"); }

1422 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1423 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1424 METHOD NAME : call() throws Exception

1425 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1426 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1427 CATCH CLAUSE : catch (Exception e) { throw new RuntimeException(e); }

1428 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1429 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1430 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1431 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1432 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1433 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1434 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1435 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1436 CATCH CLAUSE : catch (Exception e) { throw new NotFoundException("Unable to determine partitioner " + partitionerName,e); }

1437 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1438 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1439 METHOD NAME : precheckSchemaAgreement(Client client) throws Exception

1440 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1441 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1442 CATCH CLAUSE : catch (Exception e) { throw new BadRequestException("Unable to convert properties to KsDef",e); }

1443 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1444 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1445 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1446 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1447 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1448 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1449 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1450 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1451 CATCH CLAUSE : catch (Exception e) { throw new BadRequestException("Unable to convert properties to CfDef",e); }

1452 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1453 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1454 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1455 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1456 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1457 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1458 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1459 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1460 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1461 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1462 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1463 METHOD NAME : internalExecute(Client client,ConnectionContext context) throws Exception

1464 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1465 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1466 CATCH CLAUSE : catch (Exception e) { LOG.error(String.format("Error fetching properties for keyspace '%s'",getKeyspaceName())); }

1467 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1468 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftKeyspaceImpl.java

1469 CATCH CLAUSE : catch (Exception e) { LOG.error("Error processing column family properties"); }

1470 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1471 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftSyncConnectionFactoryImpl.java

1472 CATCH CLAUSE : catch (Exception e) { long now=System.nanoTime(); latency=now - startTime; lastException=ThriftConverter.ToConnectionPoolException(e).setLatency(latency); if (e instanceof IsTimeoutException) { pool.addLatencySample(TimeUnit.NANOSECONDS.convert(cpConfig.getSocketTimeout(),TimeUnit.MILLISECONDS),now); } tracer.failure(lastException); throw lastException; }

1473 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1474 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftSyncConnectionFactoryImpl.java

1475 CATCH CLAUSE : catch (Exception e) { long now=System.nanoTime(); latency=now - startTime; lastException=ThriftConverter.ToConnectionPoolException(e).setLatency(latency); if (e instanceof IsTimeoutException) { pool.addLatencySample(TimeUnit.NANOSECONDS.convert(cpConfig.getSocketTimeout(),TimeUnit.MILLISECONDS),now); } throw lastException; }

1476 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1477 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftSyncConnectionFactoryImpl.java

1478 CATCH CLAUSE : catch (Exception e) { pool.addLatencySample(TimeUnit.NANOSECONDS.convert(cpConfig.getSocketTimeout(),TimeUnit.MILLISECONDS),System.nanoTime()); closeClient(); ConnectionException ce=ThriftConverter.ToConnectionPoolException(e).setHost(getHost()).setLatency(System.currentTimeMillis() - startTime); monitor.incConnectionCreateFailed(getHost(),ce); throw ce; }

1479 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1480 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftSyncConnectionFactoryImpl.java

1481 CATCH CLAUSE : catch (Exception e) { pool.addLatencySample(TimeUnit.NANOSECONDS.convert(cpConfig.getSocketTimeout(),TimeUnit.MILLISECONDS),System.nanoTime()); callback.failure(This,ThriftConverter.ToConnectionPoolException(e)); }

1482 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1483 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftSyncConnectionFactoryImpl.java

1484 CATCH CLAUSE : catch (Exception e) { }

1485 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1486 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftSyncConnectionFactoryImpl.java

1487 CATCH CLAUSE : catch (Exception e) { }

1488 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1489 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftSyncConnectionFactoryImpl.java

1490 CATCH CLAUSE : catch (Exception e) { }

1491 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1492 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftUtils.java

1493 METHOD NAME : getPropertiesFromThrift(T entity) throws Exception

1494 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1495 FILE NAME : astyanax-master\astyanax-thrift\src\main\java\com\netflix\astyanax\thrift\ThriftUtils.java

1496 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\impl\RingDescribeHostSupplierTest.java

1497 METHOD NAME : setUp() throws Exception

1498 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1499 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\impl\RingDescribeHostSupplierTest.java

1500 METHOD NAME : testGet() throws Exception

1501 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1502 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\CqlTest.java

1503 METHOD NAME : setup() throws Exception

1504 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1505 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\CqlTest.java

1506 METHOD NAME : teardown() throws Exception

1507 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1508 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\CqlTest.java

1509 METHOD NAME : createKeyspace() throws Exception

1510 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1511 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\CqlTest.java

1512 CATCH CLAUSE : catch (Exception e) { LOG.info("Error dropping keyspace " + e.getMessage()); }

1513 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1514 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\CqlTest.java

1515 METHOD NAME : testCompoundKey() throws Exception

1516 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1517 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\CqlTest.java

1518 METHOD NAME : testPreparedCql() throws Exception

1519 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1520 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\CqlTest.java

1521 METHOD NAME : testKeyspaceCql() throws Exception

1522 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1523 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\CqlTest.java

1524 METHOD NAME : testCollections() throws Exception

1525 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1526 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\CqlTest.java

1527 METHOD NAME : testUUIDPart() throws Exception

1528 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1529 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\CqlTest.java

1530 METHOD NAME : testUUID() throws Exception

1531 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1532 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftClusterImplTest.java

1533 METHOD NAME : setup() throws Exception

1534 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1535 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftClusterImplTest.java

1536 METHOD NAME : teardown() throws Exception

1537 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1538 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftClusterImplTest.java

1539 METHOD NAME : test() throws Exception

1540 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1541 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceAllRowsTest.java

1542 METHOD NAME : setup() throws Exception

1543 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1544 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceAllRowsTest.java

1545 METHOD NAME : teardown() throws Exception

1546 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1547 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceAllRowsTest.java

1548 METHOD NAME : createKeyspace() throws Exception

1549 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1550 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceAllRowsTest.java

1551 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

1552 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1553 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceAllRowsTest.java

1554 CATCH CLAUSE : catch (Exception e) { System.out.println(e.getMessage()); Assert.fail(); }

1555 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1556 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceAllRowsTest.java

1557 METHOD NAME : testGetAllWithCallbackThreadsAndCheckpoints() throws Exception

1558 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1559 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceAllRowsTest.java

1560 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); }

1561 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1562 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1563 METHOD NAME : setup() throws Exception

1564 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1565 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1566 METHOD NAME : teardown() throws Exception

1567 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1568 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1569 METHOD NAME : createKeyspace() throws Exception

1570 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1571 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1572 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

1573 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1574 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1575 CATCH CLAUSE : catch (Exception e) { System.out.println(e.getMessage()); Assert.fail(); }

1576 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1577 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1578 METHOD NAME : testMultiColumnDelete() throws Exception

1579 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1580 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1581 METHOD NAME : testCqlComposite() throws Exception

1582 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1583 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1584 METHOD NAME : testHasValue() throws Exception

1585 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1586 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1587 METHOD NAME : getKeyspaceDefinition() throws Exception

1588 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1589 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1590 METHOD NAME : testCopyKeyspace() throws Exception

1591 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1592 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1593 METHOD NAME : testDescribeRing() throws Exception

1594 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1595 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1596 METHOD NAME : paginateColumns() throws Exception

1597 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1598 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1599 METHOD NAME : testSingleOps() throws Exception

1600 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1601 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1602 CATCH CLAUSE : catch (Exception e) { }

1603 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1604 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1605 CATCH CLAUSE : catch (Exception e) { }

1606 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1607 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1608 METHOD NAME : testMutationBatchMultipleWithRow() throws Exception

1609 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1610 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1611 METHOD NAME : testAtomicBatchMutation() throws Exception

1612 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1613 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1614 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage(),e); e.printStackTrace(); Assert.fail(); }

1615 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1616 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1617 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage(),e); e.printStackTrace(); Assert.fail(); }

1618 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1619 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1620 CATCH CLAUSE : catch (Exception e) { e.printStackTrace(); LOG.error(e.getMessage(),e); Assert.fail(); }

1621 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1622 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1623 CATCH CLAUSE : catch (Exception e) { baseAmount=0; }

1624 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1625 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1626 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

1627 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1628 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1629 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

1630 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1631 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1632 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

1633 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1634 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1635 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

1636 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1637 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1638 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

1639 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1640 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1641 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

1642 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1643 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1644 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

1645 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1646 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1647 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

1648 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1649 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1650 CATCH CLAUSE : catch (Exception e) { LOG.info(e.getMessage()); }

1651 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1652 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1653 CATCH CLAUSE : catch (ExecutionException e) { if (e.getCause() instanceof NotFoundException) LOG.info(e.getCause().getMessage()); else { Assert.fail(e.getMessage()); } }

1654 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)


1655 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1656 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage(),e); Assert.fail(); }

1657 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1658 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1659 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage(),e); Assert.fail(); }

1660 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1661 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1662 CATCH CLAUSE : catch (Exception e) { LOG.error(e.getMessage(),e); Assert.fail(); }

1663 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1664 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1665 METHOD NAME : testTtlValues() throws Exception

1666 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1667 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1668 CATCH CLAUSE : catch (Exception e) { Assert.fail(e.getMessage()); }

1669 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown


1670 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1671 METHOD NAME : columnAutoPaginateTest() throws Exception

1672 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1673 FILE NAME : astyanax-master\astyanax-thrift\src\test\java\com\netflix\astyanax\thrift\ThriftKeyspaceImplTest.java

1674 METHOD NAME : testDDLWithProperties() throws Exception

1675 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw


1676 EXPERIMENTAL RESULTS

1677 NUMBER OF JAVA FILES IN THE APPLICATION : 494 1678 NUMBER OF CATCH CLAUSES IN THE APPLICATION :614 1679 NUMBER OF METHOD DECLARATIONS IN THE APPLICATION :4730

1680 NUMBER OF PSTE ANTIPATTERN : 6 1681 NUMBER OF LGTE ANTIPATTERN : 6 1682 NUMBER OF CTGE ANTIPATTERN : 244 1683 NUMBER OF RNHR ANTIPATTERN : 0 1684 NUMBER OF PSRN ANTIPATTERN : 0 1685 NUMBER OF MLLM ANTIPATTERN : 0 1686 NUMBER OF LGRN ANTIPATTERN : 2 1687 NUMBER OF THGE ANTIPATTERN : 293 1688 NUMBER OF WEPG ANTIPATTERN : 0 1689 NUMBER OF RRGC ANTIPATTERN : 2