function ParseError(message, hash) {
  _.extend(this, hash);

  this.name = 'ParseError';
  this.message = (message || '');
}
jison doesn't have a good exception, so we make one.
This is brittle as it depends on jison internals