* When a bound model attempts to retrieve JSONGraph it should throw an * error. * * @private
()
| 7 | * @private |
| 8 | */ |
| 9 | function 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 | |
| 27 | applyErrorPrototype(BoundJSONGraphModelError); |
| 28 |
nothing calls this directly
no outgoing calls
no test coverage detected