code: function DriverError (message, constructor) {
    if (constructor) {
      Error.captureStackTrace(this, constructor);
      this.name = constructor.name;
    }
    this.message = message || 'Error';
    this.info = 'Cassandra Driver Error';
  }
docs: error classes 
  Base Error