UNPKG

blocktrail-sdk

Version:

BlockTrail's Developer Friendly API binding for NodeJS

9 lines (6 loc) 701 B
function IllegalStateError () { var err = Error.apply( this, arguments ); this.message = err.message, this.stack = err.stack; } IllegalStateError.prototype = Object.create( Error.prototype, { name: { value: 'IllegalStateError' } } ); function IllegalArgumentError () { var err = Error.apply( this, arguments ); this.message = err.message, this.stack = err.stack; } IllegalArgumentError.prototype = Object.create( Error.prototype, { name: { value: 'IllegalArgumentError' } } ); function SecurityError () { var err = Error.apply( this, arguments ); this.message = err.message, this.stack = err.stack; } SecurityError.prototype = Object.create( Error.prototype, { name: { value: 'SecurityError' } } );