File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
net.tascalate.javaflow.api/src/main/java/org/apache/commons/javaflow/api Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments