This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
https://heycam.github.io/webidl/#idl-exceptions provides guidance/examples on creating and throwing exceptions, including shorthand like "Throw an IndexSizeError." It should include similar guidance/examples for rejecting promises. In addition, `reject` should be defined and linkable like `throw`. This was originally discussed in https://github.com/w3c/encrypted-media/issues/122#issuecomment-163082590. See also the reply from Domenic. This may be related to bug 21740, though that seems outdated.