Custom error fields and error class.