From 905d2895cc48866120fb49670020feb2ab09ceb1 Mon Sep 17 00:00:00 2001 From: "Pimm \"de Chinchilla\" Hogeling" Date: Tue, 10 Sep 2024 13:12:09 +0200 Subject: [PATCH] Remove ApiError::getMessage, ApiError::getField, and ApiError::getStatusCode. The values returned by these functions are available as (public) properties. --- src/errors/ApiError.ts | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/errors/ApiError.ts b/src/errors/ApiError.ts index a6bc595b..9710a12a 100644 --- a/src/errors/ApiError.ts +++ b/src/errors/ApiError.ts @@ -27,36 +27,6 @@ export default class ApiError extends Error { Object.defineProperty(this, 'message', { enumerable: true }); } - /** - * Get the error message - * - * @since 3.0.0 - * @deprecated Use `error.message` instead. - */ - public getMessage(): string { - return this.message; - } - - /** - * Get the field name that contains an error - * - * @since 3.0.0 - * @deprecated Use `error.field` instead. - */ - public getField(): Maybe { - return this.field; - } - - /** - * Get the API status code - * - * @since 3.0.0 - * @deprecated Use `error.statusCode` instead. - */ - public getStatusCode(): Maybe { - return this.statusCode; - } - /** * Get the documentation URL *