DS.Errors
DS.Errors Class
Extends: Ember.Object
Uses: Ember.Enumerable
Uses: Ember.Evented
Defined in: addon/-private/system/model/errors.js:15
Module: ember-data
Holds validation errors for a given record, organized by attribute names.
Every DS.Model
has an errors
property that is an instance of DS.Errors
. This can be used to display validation error messages returned from the server when a record.save()
rejects.
For Example, if you had a User
model that looked like this:
app/models/user.js
登录查看完整内容