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