DS.Errors#_remove()

_removeprivate Defined in addon/-private/system/model/errors.js:329 Removes all error messages from the given attribute without sending event.

DS.Errors#_registerHandlers()

_registerHandlersprivate Defined in addon/-private/system/model/errors.js:111 Register with target handler

DS.Errors#_findOrCreateMessages()

_findOrCreateMessagesprivate Defined in addon/-private/system/model/errors.js:255

DS.Errors#_clear()

_clearprivate Defined in addon/-private/system/model/errors.js:379 Removes all error messages. to the record.

DS.Errors#_add()

_addprivate Defined in addon/-private/system/model/errors.js:241 Adds error messages to a given attribute without sending event.

DS.Errors#unknownProperty()

unknownPropertyprivate Defined in addon/-private/system/model/errors.js:184

DS.Errors#remove()

remove (attribute) deprecated Defined in addon/-private/system/model/errors.js:280 Removes all error messages from the given attribute and sends becameValid event to the record if there no more errors left. Example: app/models/user.js import DS from 'ember-data'; export default DS.Model.extend({ email: DS.attr('string'), twoFactorAuth: DS.attr('boolean'), phone: DS.attr('string') }); app/routes/user/edit.js import Ember from 'ember'; export default Ember.Route.extend({ actions: {

DS.Errors#registerHandlers()

registerHandlers (target, becameInvalid, becameValid) deprecated Defined in addon/-private/system/model/errors.js:91 Register with target handler Parameters: target Object becameInvalid Function becameValid Function

DS.Errors#messages

messages{Array} Defined in addon/-private/system/model/errors.js:158 An array containing all of the error messages for this record. This is useful for displaying all errors to the user. {{#each model.errors.messages as |message|}} <div class="error"> {{message}} </div> {{/each}}

DS.Errors#length

length{Number} Defined in addon/-private/system/model/errors.js:194 Total number of errors.