Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import lombok.Getter;
import lombok.Setter;
import neo4j.org.testkit.backend.FrontendError;
import neo4j.org.testkit.backend.TestkitState;
import neo4j.org.testkit.backend.holder.AsyncTransactionHolder;
import neo4j.org.testkit.backend.holder.RxTransactionHolder;
Expand Down Expand Up @@ -123,10 +124,11 @@ private TransactionWork<Void> handle( TestkitState testkitState, SessionHolder s
{
throw (Neo4jException) workThrowable;
}
else
if ( workThrowable instanceof FrontendError )
{
throw new RuntimeException( "Unexpected exception occurred in transaction work function", workThrowable );
throw (FrontendError) workThrowable;
}
throw new RuntimeException( "Unexpected exception occurred in transaction work function", workThrowable );
}
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import lombok.Getter;
import lombok.Setter;
import neo4j.org.testkit.backend.FrontendError;
import neo4j.org.testkit.backend.TestkitState;
import neo4j.org.testkit.backend.holder.AsyncTransactionHolder;
import neo4j.org.testkit.backend.holder.RxTransactionHolder;
Expand Down Expand Up @@ -126,10 +127,11 @@ private TransactionWork<Void> handle( TestkitState testkitState, SessionHolder s
{
throw (Neo4jException) workThrowable;
}
else
if ( workThrowable instanceof FrontendError )
{
throw new RuntimeException( "Unexpected exception occurred in transaction work function", workThrowable );
throw (FrontendError) workThrowable;
}
throw new RuntimeException( "Unexpected exception occurred in transaction work function", workThrowable );
}
};
}
Expand Down