Skip to content

Documentation / @warp-drive/ember / Throw

Class: Throw<T>

Defined in: warp-drive-packages/ember/declarations/-private/await.d.ts:23

The <Throw /> component is used to throw an error in a template.

That's all it does. So don't use it unless the application should throw an error if it reaches this point in the template.

gts
<Throw @error={{anError}} />

Extends

  • default<ThrowSignature<T>>

Type Parameters

T

T

Constructors

Constructor

ts
new Throw<T>(owner, args): Throw<T>;

Defined in: warp-drive-packages/ember/declarations/-private/await.d.ts:24

Parameters

owner

Owner

args
error

T

Returns

Throw<T>

Overrides

ts
Component<ThrowSignature<T>>.constructor

Released under the MIT License.