checks if cassandra error occur because of prepared statement created in one session was used in another session . concode_field_sep Pattern KEYSPACE_EXIST_ERROR3 concode_elem_sep Pattern KEYSPACE_EXIST_ERROR1 concode_elem_sep Pattern KEYSPACE_EXIST_ERROR2 concode_elem_sep String PREP_STATEMENT_CLUSTER_INSTANCE_ERROR concode_elem_sep String TABLE_EXIST_ERROR2 concode_elem_sep Pattern TABLE_EXIST_ERROR1 concode_field_sep boolean isHostsAvailabilityError concode_elem_sep boolean isKeyspaceAbsenceError concode_elem_sep boolean isTableAbsenceError concode_elem_sep boolean isCassandraCompatibleTypes concode_elem_sep void closeSession
boolean function ( Throwable arg0 ) { while ( arg0 != null ) { if ( arg0 instanceof InvalidQueryException && arg0 . getMessage ( ) . contains ( PREP_STATEMENT_CLUSTER_INSTANCE_ERROR ) ) return true ; arg0 = arg0 . getCause ( ) ; } return false ; }