Files
nest/packages/microservices/errors/invalid-kafka-client-topic-partition.exception.ts
2020-08-07 16:04:40 +02:00

10 lines
329 B
TypeScript

import { RuntimeException } from '@nestjs/core/errors/exceptions/runtime.exception';
export class InvalidKafkaClientTopicPartitionException extends RuntimeException {
constructor(topic?: string) {
super(
`The client consumer subscribed to the topic (${topic}) which is not assigned to any partitions.`,
);
}
}