Skip to content
  • Étienne Barrié's avatar
    142ae54e
    Allow jobs to rescue all exceptions · 142ae54e
    Étienne Barrié authored
    
    
    Before this commit, only StandardError exceptions can be handled by
    rescue_from handlers.
    
    This changes the rescue clause to catch all Exception objects, allowing
    rescue handlers to be defined for Exception classes not inheriting from
    StandardError.
    
    This means that rescue handlers that are rescuing Exceptions outside of
    StandardError exceptions may rescue exceptions that were not being
    rescued before this change.
    
    Co-authored-by: default avatarAdrianna Chang <adrianna.chang@shopify.com>
    142ae54e
    Allow jobs to rescue all exceptions
    Étienne Barrié authored
    
    
    Before this commit, only StandardError exceptions can be handled by
    rescue_from handlers.
    
    This changes the rescue clause to catch all Exception objects, allowing
    rescue handlers to be defined for Exception classes not inheriting from
    StandardError.
    
    This means that rescue handlers that are rescuing Exceptions outside of
    StandardError exceptions may rescue exceptions that were not being
    rescued before this change.
    
    Co-authored-by: default avatarAdrianna Chang <adrianna.chang@shopify.com>
Loading