mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-22 13:15:49 +00:00
Add resultCode and resultMessage to submit failure RippledError
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
const util = require('util');
|
||||
|
||||
class RippleError extends Error {
|
||||
constructor(message) {
|
||||
constructor(message, data) {
|
||||
super(message);
|
||||
this.name = this.constructor.name;
|
||||
this.message = message;
|
||||
this.data = data;
|
||||
Error.captureStackTrace(this, this.constructor.name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user