Skip to content

Commit 375bbde

Browse files
committed
Fix exception messages
1 parent 234ef2d commit 375bbde

File tree

1 file changed

+3
-3
lines changed
  • net.tascalate.javaflow.api/src/main/java/org/apache/commons/javaflow/api

1 file changed

+3
-3
lines changed

net.tascalate.javaflow.api/src/main/java/org/apache/commons/javaflow/api/Continuation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ static final class SingleShotContinuation extends Continuation {
546546
@Override
547547
public Continuation multiShot() {
548548
if (isResumed) {
549-
throw new IllegalStateException("Exclusive continuation may not be converted to multi-shot after resume");
549+
throw new IllegalStateException("Single-shot continuation may not be converted to multi-shot after resume");
550550
}
551551
return new MultiShotContinuation(new StackRecorder(stackRecorder), value());
552552
}
@@ -565,7 +565,7 @@ protected Continuation resumeWith(ResumeParameter param) {
565565
if (param == ResumeParameter.exit()) {
566566
return null;
567567
} else {
568-
throw new IllegalStateException("Exclusive continuation may be resumed only once");
568+
throw new IllegalStateException("Single-shot continuation may be resumed only once");
569569
}
570570
}
571571
isResumed = true;
@@ -579,7 +579,7 @@ protected Continuation resumeWith(ResumeParameter param) {
579579
return null;
580580
} else if (SuspendResult.AGAIN == result) {
581581
// invalid operation for exclusive continuation
582-
throw new IllegalStateException("Exclusive continuation may not be re-tried");
582+
throw new IllegalStateException("Single-shot continuation may not be re-tried");
583583
}
584584

585585
return new SingleShotContinuation(nextStackRecorder, result.value());

0 commit comments

Comments
 (0)