Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 15 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Coverage | 100% |
Changes | 0 |
1 | import makeAppError from './app-error.js'; |
||
2 | |||
3 | 6 | const AppError = makeAppError(); |
|
4 | |||
5 | class TimeoutError extends AppError { |
||
6 | get name() { |
||
7 | 7 | return 'TimeoutError'; |
|
8 | } |
||
9 | |||
10 | get errorStatus() { |
||
11 | 4 | return 408; |
|
12 | } |
||
13 | } |
||
14 | |||
15 | export default TimeoutError; |
||
16 |