UNPKG

react-native-star-io10

Version:

react-native-star-io10 is a library for supporting application development for Star Micronics devices.

20 lines (15 loc) 464 B
import { StarIO10ErrorCode } from './StarIO10ErrorCode'; export class StarIO10Error extends Error { private _errorCode: number; get errorCode(): number { return this._errorCode; } constructor(message: string, errorCode: number = StarIO10ErrorCode.None) { super(message); this.name = this.typeName; this._errorCode = errorCode; } protected get typeName(): string { return "StarIO10Error"; } }