UNPKG

ilp-core

Version:

ILP core module managing ledger abstraction

21 lines (16 loc) 365 B
'use strict' const BaseError = require('five-bells-shared/errors/base-error') class NoQuoteError extends BaseError { constructor(message) { super(message) } * handler(ctx, log) { log.warn('Not Found: ' + this.message) ctx.status = 404 ctx.body = { id: this.name, message: this.message } } } module.exports = NoQuoteError