this.throwError is not defined

replacing this.throwError to 'throw new Error' since this doesn't have throwError method