john-goldsmith/vscode-aws-cloudformation-auto-template-generator

View on GitHub
src/errors/no-active-text-editor.ts

Summary

Maintainability
A
2 hrs
Test Coverage
A
100%
import BaseError from './base'

/**
 * @param {string} [message]
 */
export default class NoActiveTextEditorError extends BaseError {

  constructor(message = 'No active text editor') {
    super(message)
    if (Error.captureStackTrace) {
      Error.captureStackTrace(this, NoActiveTextEditorError)
    }
    // this.date = new Date()
    // this.code = ...
    this.name = this.constructor.name
  }

}