Looks for the extension of a given name. If none found it will throw an exception.
extension, never null
extension name
When the given extension is not found.