BrowserREPL-button-tip-on BrowserREPL-button-tip-off

EditButtonTip 2019-08-04

class X::Promise::CauseOnlyValidOnBroken

Error due to asking why an unbroken promise has been broken.

class X::Promise::CauseOnlyValidOnBroken is Exception { }
Code

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()
Code

Returns the Promise that was asked about.

method status§

method status()
Code

Returns the status the Promise had at that time.