update database error messages
This commit is contained in:
parent
f89483f878
commit
f245ff74a8
72 changed files with 325 additions and 441 deletions
|
@ -1,5 +1,6 @@
|
|||
import { dataSource } from "../../data-source";
|
||||
import { salutation } from "../../entity/settings/salutation";
|
||||
import DatabaseActionException from "../../exceptions/databaseActionException";
|
||||
import InternalException from "../../exceptions/internalException";
|
||||
|
||||
export default abstract class SalutationService {
|
||||
|
@ -17,7 +18,7 @@ export default abstract class SalutationService {
|
|||
return res;
|
||||
})
|
||||
.catch((err) => {
|
||||
throw new InternalException("salutations not found", err);
|
||||
throw new DatabaseActionException("SELECT", "salutation", err);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -35,7 +36,7 @@ export default abstract class SalutationService {
|
|||
return res;
|
||||
})
|
||||
.catch((err) => {
|
||||
throw new InternalException("salutation not found by id", err);
|
||||
throw new DatabaseActionException("SELECT", "salutation", err);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue