Extract failure type enum.