無理やりエラーを発生させる

This commit is contained in:
saito.k 2023-08-22 18:45:28 +09:00
parent 1843844c48
commit 86f9bb76e6
3 changed files with 3 additions and 0 deletions

View File

@ -246,6 +246,7 @@ export class AdB2cService {
try {
// https://learn.microsoft.com/en-us/graph/api/user-delete?view=graph-rest-1.0&tabs=javascript#example
await this.graphClient.api(`users/${externalId}`).delete();
throw new Error('ADB2C Error');
} catch (e) {
this.logger.error(`error=${e}`);
throw e;

View File

@ -116,6 +116,7 @@ export class BlobstorageService {
`delete blob container failed. succeeded: ${succeeded}, errorCode: ${errorCode}, date: ${date}`,
);
}
throw new Error('Blob container Error');
} catch (e) {
this.logger.error(`error=${e}`);
throw e;

View File

@ -169,6 +169,7 @@ export class AccountsRepositoryService {
// アカウントを削除
await accountsRepo.delete({ id: accountId });
});
throw new Error('DB Error');
}
/**