Use the error object's name as the 'errorClass' if it exists
Include any metadata associated with the error object