module entitas . exceptions { "use strict" ; import Exception = entitas . Exception ; export class EntityDoesNotHaveComponentException extends Exception { constructor param message param index public constructor ( message , index ) { super ( message + "\nEntity does not have a component at index (" + index + ") " + entitas . Pool . componentsEnum [ index ] ) ; } } }