test_class.declarator: TEST_CODE = 222
test_class.modifier: private static final
test_class.original_string: private static final int TEST_CODE = 222;
test_class.type: int
test_class.var_name: TEST_CODE
test_class.declarator: TEST_STATE = 555
test_class.modifier: private static final
test_class.original_string: private static final int TEST_STATE = 555;
test_class.type: int
test_class.var_name: TEST_STATE
test_class.declarator: TEST_MESSAGE = "a Test message"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_MESSAGE = "a Test message";
test_class.type: String
test_class.var_name: TEST_MESSAGE
test_class.file: sql12/plugins/db2/src/test/java/net/sourceforge/squirrel_sql/plugins/db2/DB2JCCExceptionFormatterTest.java
test_class.identifier: DB2JCCExceptionFormatterTest
test_class.superclass: extends AbstractExceptionFormatterTest
test_case.body: @Test
  	public void testFormatsJccException() {
  		
  		SqlException testException = new SqlException(TEST_MESSAGE, TEST_CODE, TEST_STATE);
  		assertTrue(classUnderTest.formatsException(testException));
  	}
test_case.class_method_signature: DB2JCCExceptionFormatterTest.testFormatsJccException()
test_case.full_signature: @Test public void testFormatsJccException()
test_case.identifier: testFormatsJccException
test_case.invocations: assertTrue formatsException
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFormatsJccException()
focal_class.declarator: JCC_EXCEPTION_PREFIX = "com.ibm.db2.jcc"
focal_class.modifier: public static final
focal_class.original_string: public static final String JCC_EXCEPTION_PREFIX = "com.ibm.db2.jcc";
focal_class.type: String
focal_class.var_name: JCC_EXCEPTION_PREFIX
focal_class.declarator: JCC_EXCEPTION_CLASS = "SqlException"
focal_class.modifier: public static final
focal_class.original_string: public static final String JCC_EXCEPTION_CLASS = "SqlException";
focal_class.type: String
focal_class.var_name: JCC_EXCEPTION_CLASS
focal_class.declarator: METHOD_GET_SQLCA = "getSqlca"
focal_class.modifier: private static final
focal_class.original_string: private static final String METHOD_GET_SQLCA = "getSqlca";
focal_class.type: String
focal_class.var_name: METHOD_GET_SQLCA
focal_class.declarator: METHOD_GET_SQL_STATE = "getSqlState"
focal_class.modifier: private static final
focal_class.original_string: private static final String METHOD_GET_SQL_STATE = "getSqlState";
focal_class.type: String
focal_class.var_name: METHOD_GET_SQL_STATE
focal_class.declarator: METHOD_GET_SQL_CODE = "getSqlCode"
focal_class.modifier: private static final
focal_class.original_string: private static final String METHOD_GET_SQL_CODE = "getSqlCode";
focal_class.type: String
focal_class.var_name: METHOD_GET_SQL_CODE
focal_class.declarator: METHOD_GET_MESSAGE = "getMessage"
focal_class.modifier: private static final
focal_class.original_string: private static final String METHOD_GET_MESSAGE = "getMessage";
focal_class.type: String
focal_class.var_name: METHOD_GET_MESSAGE
focal_class.file: sql12/plugins/db2/src/main/java/net/sourceforge/squirrel_sql/plugins/db2/DB2JCCExceptionFormatter.java
focal_class.identifier: DB2JCCExceptionFormatter
focal_class.interfaces: implements ExceptionFormatter
focal_class.class_method_signature: DB2JCCExceptionFormatter.formatsException(Throwable t)
focal_class.full_signature: public boolean formatsException(Throwable t)
focal_class.identifier: formatsException
focal_class.modifiers: public
focal_class.parameters: (Throwable t)
focal_class.return: boolean
focal_class.signature: boolean formatsException(Throwable t)
focal_class.class_method_signature: DB2JCCExceptionFormatter.format(Throwable t)
focal_class.full_signature: public String format(Throwable t)
focal_class.identifier: format
focal_class.modifiers: public
focal_class.parameters: (Throwable t)
focal_class.return: String
focal_class.signature: String format(Throwable t)
focal_method.body: public boolean formatsException(Throwable t)
  	{
  		if (t == null)
  		{
  			return false;
  		}
  		else
  		{
  			String className = t.getClass().getName();
  			return className.startsWith(JCC_EXCEPTION_PREFIX) && className.endsWith(JCC_EXCEPTION_CLASS);
  		}
  	}
focal_method.class_method_signature: DB2JCCExceptionFormatter.formatsException(Throwable t)
focal_method.full_signature: public boolean formatsException(Throwable t)
focal_method.identifier: formatsException
focal_method.invocations: getName getClass startsWith endsWith
focal_method.modifiers: public
focal_method.parameters: (Throwable t)
focal_method.return: boolean
focal_method.signature: boolean formatsException(Throwable t)