UNPKG

ilp-core

Version:

ILP core module managing ledger abstraction

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