Skip to content

Commit

Permalink
renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqxx committed Aug 29, 2024
1 parent 3172976 commit 86f4387
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/api/get_dns_records_from_api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import APIRequestError from '../error/api_request_error.ts';
import ApiRequestError from '../error/api_request_error.ts';
import FetchRequestError from '../error/fetch_request_error.ts';
import { DNSRecord } from '../record/dns_record.ts';
import supportedDnsRecordTypes from '../record/dns_record_type.ts';
Expand Down Expand Up @@ -31,6 +31,6 @@ export default function getDnsRecordsFromApi(options: GetDNSRecordsFromApiOption
if (responseJson.success) {
return responseJson.result
}
throw new APIRequestError({cause: responseJson.errors})
throw new ApiRequestError({cause: responseJson.errors})
});
}
2 changes: 1 addition & 1 deletion src/error/api_request_error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import CustomError from './custom_error.ts'
/**
* This class represents an api request error. This error is thrown if there is an error during the api request.
*/
export default class APIRequestError extends CustomError {
export default class ApiRequestError extends CustomError {
/**
* @param error The custom error options
*/
Expand Down

0 comments on commit 86f4387

Please sign in to comment.