mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
11 lines
317 B
JavaScript
11 lines
317 B
JavaScript
function TransactionError(result) {
|
|
this.code = this.message = result.error
|
|
this.name = 'TransactionError'
|
|
Error.captureStackTrace(this, TransactionError)
|
|
}
|
|
|
|
TransactionError.prototype = Object.create(Error.prototype)
|
|
TransactionError.prototype.constructor = TransactionError
|
|
|
|
module.exports = TransactionError
|