Add NSError parameters to the class constructors.