import { BusState } from '../bus-state' ; export class InvalidBusState extends Error { constructor ( message , readonly actualState , readonly expectedState ) { super ( message ) ; Object . setPrototypeOf ( this , new . target . prototype ) ; } }