import { UnauthorizedException } from '@nestjs/common' ; import { ErrorType } from '../../enums' ; export class DisabledUserException extends UnauthorizedException { constructor ( errorType ) { super ( { errorType , message : 'User not authorized to login' , } ) ; } }