Ember.Error Class packages/ember-metal/lib/error.js:13


PUBLIC

Extends: Error

Defined in: packages/ember-metal/lib/error.js:13

Module: ember

A subclass of the JavaScript Error object for use in Ember.

Show:

Methods

Show:

deprecateProperty

(object, deprecatedKey, newKey) private
Defined in packages/ember-metal/lib/deprecate_property.js:11
Available since 1.7.0

Used internally to allow changing properties in a backwards compatible way, and print a helpful deprecation warning.

Parameters:

object Object
The object to add the deprecated property to.
deprecatedKey String
The property to add (and print deprecation warnings upon accessing).
newKey String
The property that will be aliased.