How do iterate through all errors for a WP_Error object?

How do iterate through all errors for a WP_Error object?