All files / advanced-spawn-async/lib/classes/errors/spawn-error index.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3
1 2 3 4 5 6 7 8 9 10 11    5x 5x           1x  
abstract class SpawnError extends Error {
  constructor (message: string) {
    super(message)
    this.name = this.getName()
  }
 
  protected abstract getName (): string
}
 
export = SpawnError