push
github
3458 of 4432 branches covered (78.02%)
Branch coverage included in aggregate %.
16 of 16 new or added lines in 10 files covered. (100.0%)
1793 existing lines in 129 files now uncovered.29424 of 35625 relevant lines covered (82.59%)
183.2 hits per line
| 1 |
import type { ErrorIssue } from '../error-issue.js';
|
1✔ |
| 2 |
import { OpraHttpError } from '../opra-http-error.js';
|
1✔ |
| 3 |
|
1✔ |
| 4 |
/**
|
1✔ |
| 5 |
* 500 Internal Server Error |
1✔ |
| 6 |
* The server has encountered a situation it does not know how to handle. |
1✔ |
| 7 |
*/ |
1✔ |
| 8 |
export class InternalServerError extends OpraHttpError { |
1✔ |
| 9 |
status = 500;
|
1✔ |
| 10 |
|
1✔ |
| 11 |
protected init(issue: Partial<ErrorIssue>) {
|
1✔ |
| 12 |
super.init({
|
× |
|
UNCOV
13
|
message: 'Internal server error', |
× |
|
UNCOV
14
|
code: 'INTERNAL_SERVER_ERROR', |
× |
|
UNCOV
15
|
severity: 'fatal', |
× |
|
UNCOV
16
|
...issue, |
× |
|
UNCOV
17
|
}); |
× |
|
UNCOV
18
|
} |
× |
| 19 |
} |
1✔ |