UNPKG

node-nicepay

Version:

Nicepay Payment Gateway SDK on Node.js

16 lines (11 loc) 511 B
'use strict' const NE = require('node-exceptions') class RuntimeException extends NE.RuntimeException { incompleteRequest (errorMessage) { return new RuntimeException('Incomplete or Error Occured while requesting with error message ' + errorMessage, 500, 'NP_INCOMPLETE_REQUEST') } incompleteBuild(errorMessage){ return new RuntimeException('Incomplete or Error Occured while build with error message ' + errorMessage, 500, 'NP_INCOMPLETE_BUILD') } } module.exports = new RuntimeException()