push
github
26500 of 32174 branches covered (82.36%)
Branch coverage included in aggregate %.
91252 of 113615 relevant lines covered (80.32%)
88980.79 hits per line
| 1 |
export class TypeORMError extends Error { |
26✔ |
| 2 |
get name() {
|
|
| 3 |
return this.constructor.name |
1,946✔ |
| 4 |
} |
1,946✔ |
| 5 |
|
26✔ |
| 6 |
constructor(message?: string) {
|
|
| 7 |
super(message) |
3,619✔ |
| 8 |
|
3,619✔ |
| 9 |
// restore prototype chain because the base `Error` type
|
3,619✔ |
| 10 |
// will break the prototype chain a little
|
3,619✔ |
| 11 |
if (Object.setPrototypeOf) {
|
3,619✔ |
| 12 |
Object.setPrototypeOf(this, new.target.prototype) |
3,619✔ |
| 13 |
} else {
|
|
| 14 |
;(this as any).__proto__ = new.target.prototype |
× |
| 15 |
} |
× |
| 16 |
} |
3,619✔ |
| 17 |
} |
26✔ |