class X::Promise::CauseOnlyValidOnBroken

Error due to asking why an unbroken promise has been broken.
class X::Promise::CauseOnlyValidOnBroken is Exception { }

This exception is thrown when code expects a Promise to be broken, and asks why it has been broken, but the Promise has in fact, not yet been broken.

Methods

method promise

method promise()

Returns the Promise that was asked about.

method status

method status()

Returns the status the Promise had at that time.

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite β€” the markup and publishing tools behind this site.