hedgedoc/src
Philip Molares 4ad7ad368c feat: add error-mapping
The ErrorExceptionMapping class maps internal error to nestjs's appropriate HttpException.
The object returned by those HttpExceptions is now changed to include the name of the intern error code and error message instead of statusCode and error message as is default. This makes it possible to more easily programmatically distinguish between two errors that map to the same HttpException and only differ in the error message.
The statusCode was unnecessary, because any user of the api gets this information already by which HttpException was used.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-02-07 00:08:41 +01:00
..
api refactor: move error messages from controller to service 2022-02-07 00:08:41 +01:00
auth refactor(auth-token): rename lastUsed to lastUsedAt 2022-01-16 21:52:15 +01:00
authors refactor(author): lazy-load relations 2021-11-16 18:45:40 +01:00
config refactor(config): type config mocks 2022-01-30 22:19:50 +01:00
errors feat: add error-mapping 2022-02-07 00:08:41 +01:00
frontend-config refactor(config): extract note config from app config 2022-01-30 22:19:50 +01:00
groups refactor(group): lazy-load relations 2021-11-16 19:05:28 +01:00
history refactor(config): extract note config from app config 2022-01-30 22:19:50 +01:00
identity refactor: move error messages from controller to service 2022-02-07 00:08:41 +01:00
logger Enforce import order with prettier 2021-08-29 18:45:46 +02:00
media refactor(config): extract note config from app config 2022-01-30 22:19:50 +01:00
monitoring Enforce import order with prettier 2021-08-29 18:45:46 +02:00
notes refactor: getNoteByIdOrAlias throws NotInDBError instead of ForbiddenIdError for an id on the forbidden list 2022-02-07 00:08:41 +01:00
permissions refactor(config): extract note config from app config 2022-01-30 22:19:50 +01:00
revisions refactor(config): extract note config from app config 2022-01-30 22:19:50 +01:00
users refactor(user): lazy-load relations 2021-12-05 22:03:41 +01:00
utils feat: setupSpecialGroups in bootstrap 2021-10-31 00:06:55 +02:00
app.module.ts refactor(config): extract note config from app config 2022-01-30 22:19:50 +01:00
main.ts feat: setupSpecialGroups in bootstrap 2021-10-31 00:06:55 +02:00
seed.ts refactor(user): lazy-load relations 2021-12-05 22:03:41 +01:00