export default class MediaStreamError { name: string; message?: string; constraintName?: string; // @ts-ignore:next-line constructor(error) { this.name = error.name; this.message = error.message; this.constraintName = error.constraintName; } }