Files
Modrinth-plus/packages/utils/servers/errors/modrinth-servers-fetch-error.ts

11 lines
212 B
TypeScript
Raw Normal View History

export class ModrinthServersFetchError extends Error {
constructor(
message: string,
public statusCode?: number,
public originalError?: Error,
) {
super(message)
this.name = 'ModrinthFetchError'
}
}