@vepler/http-sdk
Version:
The definitive TypeScript SDK for UK property technology. Access comprehensive property data, school metrics, demographics, planning applications, and more through a single, powerful API.
31 lines (30 loc) • 1.32 kB
TypeScript
/**
* Standardized error message utilities for consistent error handling across the SDK
*/
/**
* Creates a standardized required parameter error message
* @param paramName - The name of the required parameter
* @returns Formatted error message
*/
export declare function createRequiredParameterError(paramName: string): string;
/**
* Creates a standardized mutually exclusive parameters error message
* @param paramGroup1 - First group of parameters
* @param paramGroup2 - Second group of parameters
* @returns Formatted error message
*/
export declare function createMutuallyExclusiveError(paramGroup1: string, paramGroup2: string): string;
/**
* Creates a standardized "either/or" parameter error message
* @param paramGroup1 - First group of parameters
* @param paramGroup2 - Second group of parameters
* @returns Formatted error message
*/
export declare function createEitherOrParameterError(paramGroup1: string, paramGroup2: string): string;
/**
* Creates a standardized conditional parameter error message
* @param dependentParam - Parameter that depends on another
* @param requiredParam - Parameter that is required when dependent is provided
* @returns Formatted error message
*/
export declare function createConditionalParameterError(dependentParam: string, requiredParam: string): string;