loopback/lib
Miroslav Bajtoš 63e2f4b134 Improve error handling in replication
Deprecate `Change.handleError`, it was used inconsistenly for a subset
of possible errors only. Rework all `Change` methods to always report
all errors to the caller via the callback.

Rework `PersistedModel` to report change-tracking errors via the
existing method `PersistedModel.handleChangeError`. This method
can be customized on a per-model basis to provide different error
handling.

The default implementation emits `error` event on the model class,
users can attach an event listener that can provide a custom error
handler.

NOTE: Unhandled `error` events crash the application by default.
2015-03-30 11:07:53 +02:00
..
connectors Enable jscs for `lib`, fix style violations 2014-11-04 08:25:33 +01:00
access-context.js Enable jscs for `lib`, fix style violations 2014-11-04 08:25:33 +01:00
application.js Import subset of underscore.string scripts only 2015-03-25 14:02:16 +01:00
browser-express.js Emit a 'modelRemoted' event by app.model() 2014-07-24 17:00:27 -07:00
builtin-models.js models: move Change LDL def into a json file 2014-10-14 09:04:43 +02:00
express-middleware.js Expose more loopback middleware for require 2014-11-19 11:32:22 -08:00
loopback.js Add `loopback.runInContext` 2015-03-27 19:12:17 +01:00
model.js Import subset of underscore.string scripts only 2015-03-25 14:02:16 +01:00
persisted-model.js Improve error handling in replication 2015-03-30 11:07:53 +02:00
registry.js Allows ACLs/settings in model config 2014-11-07 11:14:40 -08:00
runtime.js Enable jscs for `lib`, fix style violations 2014-11-04 08:25:33 +01:00
server-app.js Add a workaround to avoid conflicts with NewRelic 2015-02-25 09:47:18 -08:00