The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/lib/errors/RoomNotFoundError.ts

16 lines
460 B

import type { IRoom, RoomType } from '@rocket.chat/core-typings';
import { RocketChatError } from './RocketChatError';
type RoomNotFoundErrorDetails =
| { rid: IRoom['_id'] }
| {
type: RoomType;
reference: string;
};
export class RoomNotFoundError extends RocketChatError<'room-not-found', RoomNotFoundErrorDetails> {
constructor(message = 'Room not found', details: RoomNotFoundErrorDetails) {
super('room-not-found', message, details);
}
}