A simple API for generating JavaScript Error objects.