Have added an error class for encapsulating errors coming from parse.