@@ -68,7 +68,7 @@ public void shouldHandleWriteFailureOnConsume()
68
68
{
69
69
// Given
70
70
when ( delegate .consume () )
71
- .thenThrow ( new ClientException ( "Neo.ClientError.General.ForbiddenOnFollower " , "oh no!" ) );
71
+ .thenThrow ( new ClientException ( "Neo.ClientError.Cluster.NotALeader " , "oh no!" ) );
72
72
ClusteredStatementResult result =
73
73
new ClusteredStatementResult ( delegate , LOCALHOST , onError );
74
74
@@ -117,7 +117,7 @@ public void shouldHandleWriteFailureOnHasNext()
117
117
{
118
118
// Given
119
119
when ( delegate .hasNext () )
120
- .thenThrow ( new ClientException ( "Neo.ClientError.General.ForbiddenOnFollower " , "oh no!" ) );
120
+ .thenThrow ( new ClientException ( "Neo.ClientError.Cluster.NotALeader " , "oh no!" ) );
121
121
ClusteredStatementResult result =
122
122
new ClusteredStatementResult ( delegate , LOCALHOST , onError );
123
123
@@ -166,7 +166,7 @@ public void shouldHandleWriteFailureOnKeys()
166
166
{
167
167
// Given
168
168
when ( delegate .keys () )
169
- .thenThrow ( new ClientException ( "Neo.ClientError.General.ForbiddenOnFollower " , "oh no!" ) );
169
+ .thenThrow ( new ClientException ( "Neo.ClientError.Cluster.NotALeader " , "oh no!" ) );
170
170
ClusteredStatementResult result =
171
171
new ClusteredStatementResult ( delegate , LOCALHOST , onError );
172
172
@@ -215,7 +215,7 @@ public void shouldHandleWriteFailureOnList()
215
215
{
216
216
// Given
217
217
when ( delegate .list () )
218
- .thenThrow ( new ClientException ( "Neo.ClientError.General.ForbiddenOnFollower " , "oh no!" ) );
218
+ .thenThrow ( new ClientException ( "Neo.ClientError.Cluster.NotALeader " , "oh no!" ) );
219
219
ClusteredStatementResult result =
220
220
new ClusteredStatementResult ( delegate , LOCALHOST , onError );
221
221
@@ -264,7 +264,7 @@ public void shouldHandleWriteFailureOnNext()
264
264
{
265
265
// Given
266
266
when ( delegate .next () )
267
- .thenThrow ( new ClientException ( "Neo.ClientError.General.ForbiddenOnFollower " , "oh no!" ) );
267
+ .thenThrow ( new ClientException ( "Neo.ClientError.Cluster.NotALeader " , "oh no!" ) );
268
268
ClusteredStatementResult result =
269
269
new ClusteredStatementResult ( delegate , LOCALHOST , onError );
270
270
@@ -313,7 +313,7 @@ public void shouldHandleWriteFailureOnPeek()
313
313
{
314
314
// Given
315
315
when ( delegate .peek () )
316
- .thenThrow ( new ClientException ( "Neo.ClientError.General.ForbiddenOnFollower " , "oh no!" ) );
316
+ .thenThrow ( new ClientException ( "Neo.ClientError.Cluster.NotALeader " , "oh no!" ) );
317
317
ClusteredStatementResult result =
318
318
new ClusteredStatementResult ( delegate , LOCALHOST , onError );
319
319
@@ -362,7 +362,7 @@ public void shouldHandleWriteFailureOnSingle()
362
362
{
363
363
// Given
364
364
when ( delegate .single () )
365
- .thenThrow ( new ClientException ( "Neo.ClientError.General.ForbiddenOnFollower " , "oh no!" ) );
365
+ .thenThrow ( new ClientException ( "Neo.ClientError.Cluster.NotALeader " , "oh no!" ) );
366
366
ClusteredStatementResult result =
367
367
new ClusteredStatementResult ( delegate , LOCALHOST , onError );
368
368
0 commit comments