import { BadRequestException } from '@nestjs/common'; /** * BadParameterException * * Custom exception extending NestJS's `BadRequestException`. * This exception is thrown when one or more request parameters (query, * route, or body) are invalid or malformed. * * Common scenarios: * - Query string contains unexpected or invalid values * - Route parameters fail validation * - Request body includes fields that do not conform to expected types * * By encapsulating this exception, we standardize error responses for * invalid parameters and provide consistent error messaging across the API. */ export declare class BadParameterException extends BadRequestException { /** * Constructs a new `BadParameterException`. * * @param {string} [parameter] - Optional name of the invalid parameter. * If provided, the message will reference that parameter directly. */ constructor(parameter?: string); } /** * ApiBadParameterResponse * * Swagger documentation decorator for `400 Bad Request` responses caused * by invalid request parameters. This makes it explicit in API docs that * certain routes may reject requests with malformed or unsupported input. * * The decorator dynamically adjusts the description based on the provided * parameter names, making documentation precise and self-explanatory. * * @param {...string} params - One or more invalid parameter names to * include in the response description. If none are provided, a generic * description is used instead. * @returns {MethodDecorator} - Swagger method decorator for a 400 response. */ export declare function ApiBadParameterResponse(...params: string[]): MethodDecorator;