UNPKG

@r/api-client

Version:

node and browser reddit api library

12 lines (9 loc) 296 B
class NotImplementedError extends Error { constructor (method, endpoint) { super(method, endpoint); this.name = 'NotImplementedError'; this.message = `Method ${method} not implemented for api endpoint ${endpoint}`; this.status = 405; } } export default NotImplementedError;