add get_type_from_uri convenience method
catch media simple exceptions and re-throw with full stacktrace