Tabnine Logo
QueryExecutionKernelException.getMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
getMessage
method
in
org.neo4j.kernel.impl.query.QueryExecutionKernelException

Best Java code snippets using org.neo4j.kernel.impl.query.QueryExecutionKernelException.getMessage (Showing top 6 results out of 315)

origin: neo4j/neo4j

  public QueryExecutionException asUserException()
  {
    return new QueryExecutionException( getMessage(), this, status().code().serialize() );
  }
}
origin: neo4j/neo4j

@Test
public void failQueryAfterMaxRetriesReached() throws QueryExecutionKernelException
{
  when( versionContext.isDirty() ).thenReturn( true );
  try
  {
    executionEngine.executeWithRetries( "query", Collections.emptyMap(), transactionalContext, executor );
  }
  catch ( QueryExecutionKernelException e )
  {
    assertEquals( "Unable to get clean data snapshot for query 'query' after 5 attempts.", e.getMessage() );
  }
  verify( executor, times( 5 ) ).execute( any(), anyMap(), any() );
  verify( versionContext, times( 5 ) ).initRead();
}
origin: neo4j/neo4j

@Test
void shouldThrowOnCommitInAutoCommit() throws Exception
{
  QueryExecutionKernelException e = assertThrows( QueryExecutionKernelException.class, () ->
      TransactionStateMachine.State.AUTO_COMMIT.commitTransaction( mutableState, stateMachineSPI ) );
  assertEquals( "No current transaction to commit.", e.getMessage() );
}
origin: neo4j/neo4j

@Test
void shouldThrowOnBeginInExplicitTransaction() throws Exception
{
  QueryExecutionKernelException e = assertThrows( QueryExecutionKernelException.class, () ->
      TransactionStateMachine.State.EXPLICIT_TRANSACTION.beginTransaction( mutableState, stateMachineSPI, null, null, null ) );
  assertEquals( "Nested transactions are not supported.", e.getMessage() );
}
origin: org.neo4j/neo4j-kernel

  public QueryExecutionException asUserException()
  {
    return new QueryExecutionException( getMessage(), this, status().code().serialize() );
  }
}
origin: org.neo4j/neo4j-shell

private void handleException( Output out, QueryExecutionKernelException exception, long startTime )
    throws RemoteException
{
  out.println( (now() - startTime) + " ms" );
  out.println();
  out.println( "WARNING: " + exception.getMessage() );
}
org.neo4j.kernel.impl.queryQueryExecutionKernelExceptiongetMessage

Popular methods of QueryExecutionKernelException

  • <init>
  • asUserException
  • status

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • BoxLayout (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now