iOS Swift - Swift Language Essentials
You want to write a function
loadData() that throws a custom error DataError.invalidFormat if data is bad. Which code correctly defines the error and throws it inside the function?