refactor URLActions exception handling