Helper function to get a attribute, or throw an exception if the attribute doesn't exist.
The name of the attribute to get.
The attribute.
See Implementation
Helper function to get a attribute, or throw an exception if the attribute doesn't exist.