mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
20 lines
676 B
TypeScript
20 lines
676 B
TypeScript
import { BadGatewayException, ConflictException } from '@nestjs/common';
|
|
|
|
export class FaydaTokenExchangeException extends BadGatewayException {
|
|
constructor(message = 'Fayda token exchange failed') {
|
|
super({ code: 'FAYDA_TOKEN_EXCHANGE_FAILED', message });
|
|
}
|
|
}
|
|
|
|
export class FaydaUserInfoException extends BadGatewayException {
|
|
constructor(message = 'Fayda userinfo fetch failed') {
|
|
super({ code: 'FAYDA_USERINFO_FAILED', message });
|
|
}
|
|
}
|
|
|
|
export class FaydaIdentityConflictException extends ConflictException {
|
|
constructor(message = 'This Fayda identity is already linked to another account') {
|
|
super({ code: 'FAYDA_IDENTITY_CONFLICT', message });
|
|
}
|
|
}
|