n8n-nodes-arubacentralnextgen
Version:
n8n community node for Aruba Central NextGen API integration with modern monitoring and management capabilities
19 lines (18 loc) • 765 B
TypeScript
export declare enum ErrorCode {
AUTHENTICATION_FAILED = "AUTHENTICATION_FAILED",
INVALID_PARAMETERS = "INVALID_PARAMETERS",
API_ERROR = "API_ERROR",
RATE_LIMIT_EXCEEDED = "RATE_LIMIT_EXCEEDED",
NETWORK_ERROR = "NETWORK_ERROR",
PAGINATION_ERROR = "PAGINATION_ERROR",
HIERARCHY_ERROR = "HIERARCHY_ERROR",
UNKNOWN_ERROR = "UNKNOWN_ERROR"
}
export declare class ArubaCentralError extends Error {
code: ErrorCode;
context?: Record<string, any>;
originalError?: Error;
constructor(message: string, code: ErrorCode, context?: Record<string, any>, originalError?: Error);
}
export declare function handleApiError(error: any): never;
export declare function validateParameters(params: object, requiredParams: string[]): void;