getAttribute

open fun getAttribute(key: Key): Any(source)

Retrieves an attribute with the given key. If no attribute with the given key exists, an exception is thrown.

Parameters

key

the key of the attribute

Throws

if no attribute with the given key exists