MCPcopy
hub / github.com/strongloop/loopback / throwNotAttached

Function throwNotAttached

lib/persisted-model.js:70–77  ·  view source on GitHub ↗
(modelName, methodName)

Source from the content-addressed store, hash-verified

68 */
69
70 function throwNotAttached(modelName, methodName) {
71 throw new Error(
72 g.f('Cannot call %s.%s().' +
73 ' The %s method has not been setup.' +
74 ' The {{PersistedModel}} has not been correctly attached to a {{DataSource}}!',
75 modelName, methodName, methodName),
76 );
77 }
78
79 /*!
80 * Convert null callbacks to 404 error objects.

Callers 1

persisted-model.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…