TsLint: Fixed error logging

Using a Hack: A separate error class. (see palantir/tslint#59)