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

100% Statements 5/5
100% Branches 0/0
100% Functions 2/2
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  1x           2x 2x       2x       1x  
import { IsomorphicSpawn, InternalErrorInformation } from '../../../types'
import SpawnError from '../spawn-error'
 
class InternalError<Process extends IsomorphicSpawn.Return, Error> extends SpawnError {
  readonly info: InternalErrorInformation<Process, Error>
 
  constructor (info: InternalErrorInformation<Process, Error>) {
    super(String(info.error))
    this.info = info
  }
 
  protected getName () {
    return 'InternalError'
  }
}
 
export = InternalError