validateForInsert()
Determines whether the managed object can be inserted in its current state.
Declaration
func validateForInsert() throwsDiscussion
Subclasses should invoke super’s implementation before performing their own validation, and should combine any error returned by super’s implementation with their own (see Managed Object Validation).