MCPcopy Create free account
hub / github.com/Netflix/falcor / BoundJSONGraphModelError

Function BoundJSONGraphModelError

lib/errors/BoundJSONGraphModelError.js:9–25  ·  view source on GitHub ↗

* When a bound model attempts to retrieve JSONGraph it should throw an * error. * * @private

()

Source from the content-addressed store, hash-verified

7 * @private
8 */
9function BoundJSONGraphModelError() {
10 var instance = new Error("It is not legal to use the JSON Graph " +
11 "format from a bound Model. JSON Graph format" +
12 " can only be used from a root model.");
13
14 instance.name = "BoundJSONGraphModelError";
15
16 if (Object.setPrototypeOf) {
17 Object.setPrototypeOf(instance, Object.getPrototypeOf(this));
18 }
19
20 if (Error.captureStackTrace) {
21 Error.captureStackTrace(instance, BoundJSONGraphModelError);
22 }
23
24 return instance;
25}
26
27applyErrorPrototype(BoundJSONGraphModelError);
28

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected