In Promise§

See primary documentation in context for method cause

method cause(Promise:D:)

If the promise was broken, returns the result (or exception). Otherwise, throws an exception of type X::Promise::CauseOnlyValidOnBroken.