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/NotSubscribedToRoomError.ts

15 lines
557 B

import type { IRoom } from '@rocket.chat/core-typings';
import { RocketChatError } from './RocketChatError';
type NotSubscribedToRoomErrorDetails = { rid: IRoom['_id'] };
export class NotSubscribedToRoomError extends RocketChatError<'not-subscribed-room', NotSubscribedToRoomErrorDetails> {
public declare readonly reason: string;
public declare readonly details: NotSubscribedToRoomErrorDetails;
constructor(message = 'Not subscribed to this room', details: NotSubscribedToRoomErrorDetails) {
super('not-subscribed-room', message, details);
}
}