this.throwError is not defined

replacing this.throwError to 'throw new Error' since this doesn't have throwError method
Merge pull request #310 from obastemur/patch-1

this.throwError is not defined