mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
9 lines
282 B
TypeScript
9 lines
282 B
TypeScript
import {BindingsErrorInterface} from '@serialport/bindings-interface'
|
|
|
|
export class BindingsError extends Error implements BindingsErrorInterface {
|
|
canceled: boolean
|
|
constructor(message: string, { canceled = false } = {}) {
|
|
super(message)
|
|
this.canceled = canceled
|
|
}
|
|
}
|