{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/pt/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Bloco de exceção"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"bloco-de-exceção","__idx":0},"children":["Bloco de exceção"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tipo de nó: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["exceptionBlock"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"o-que-faz","__idx":1},"children":["O que faz"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Executa as etapas associadas à política de tratamento de falhas de um nó pai."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"configuração-no-cliente-desktop","__idx":2},"children":["Configuração no cliente desktop"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/exception-block-en.b122acdab2f13976f87aaec78795b75a773e562f867f0a0891771faad302f79d.0538f3a9.webp","alt":"Ramificações de sucesso e de falha no canvas"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/exception-block-settings-en.b727f2d1f6296b90dd710198048455becbf554daa9cea20f43fd622cf4432f38.0538f3a9.webp","alt":"Configurações de tratamento de exceções no nó pai"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Captura de tela feita na interface em inglês do MoreLogin Desktop V2.73.101."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"entradas","__idx":3},"children":["Entradas"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Os caminhos são relativos ao nó completo."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Campo"},"children":["Campo"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Tipo ou valores"},"children":["Tipo ou valores"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Obrigatório no esquema"},"children":["Obrigatório no esquema"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Padrão de execução"},"children":["Padrão de execução"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Descrição e limites"},"children":["Descrição e limites"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sim"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["minLength = 1"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["maxLength = 128"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["meta"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Não"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON de exibição opcional e opaco. As chaves aninhadas desconhecidas são preservadas; não tem semântica em tempo de execução. Omiti-lo em uma substituição o remove; os nós não alterados o mantêm."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"exceptionBlock\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sim"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Não"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.title"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Não"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.description"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Não"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.inputs"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Não"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.outputs"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Não"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["blocks"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array<",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WorkflowNode"]},">"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sim"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"requisitos-de-modo-e-limites","__idx":4},"children":["Requisitos de modo e limites"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Este nó pertence apenas a um nó configurado como \"Executar ramificação de tratamento de exceções\" (data.exception.mode=branchHandle). Esse nó tem exatamente dois blocos de exceção: o primeiro é a ramificação de sucesso, e o segundo é a ramificação de falha. Se o nó pai for bem-sucedido no final, apenas a ramificação de sucesso será executada; se ele falhar no final, apenas a ramificação de falha será executada. Em seguida, a execução continua com os nós seguintes."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Os caminhos de campo dos nós de estrutura são relativos ao nó completo. Para end, defaults se refere a data.inputsValues. Para outros detalhes, consulte workflow.md."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Código de validação: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["RPA_STRUCTURE_INVALID"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"saídas","__idx":5},"children":["Saídas"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sem saída de negócio própria."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"exemplo-em-json","__idx":6},"children":["Exemplo em JSON"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Os blocos de exceção pertencem a um nó cujo ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.exception.mode"]}," é ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["branchHandle"]},". O primeiro bloco é a ramificação de sucesso, e o segundo é a ramificação de falha."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"open_shop\",\n  \"type\": \"browser_newPage\",\n  \"data\": {\n    \"title\": \"Open the shop in a new tab\",\n    \"browserAction\": \"newPage\",\n    \"browserUi\": {\n      \"inputs\": {\n        \"openMode\": \"url\",\n        \"url\": \"https://example.com/shop\"\n      },\n      \"exception\": {\n        \"policy\": \"handle\",\n        \"retry\": true,\n        \"retryTimes\": 2,\n        \"retryInterval\": 2,\n        \"screenshot\": true\n      }\n    },\n    \"exception\": {\n      \"mode\": \"branchHandle\"\n    }\n  },\n  \"blocks\": [\n    {\n      \"id\": \"open_ok\",\n      \"type\": \"exceptionBlock\",\n      \"data\": {\n        \"title\": \"Shop opened\"\n      },\n      \"blocks\": []\n    },\n    {\n      \"id\": \"open_failed\",\n      \"type\": \"exceptionBlock\",\n      \"data\": {\n        \"title\": \"Shop failed to open\"\n      },\n      \"blocks\": [\n        {\n          \"id\": \"wait_before_next\",\n          \"type\": \"browser_waitTime\",\n          \"data\": {\n            \"title\": \"Wait before the next step\",\n            \"browserAction\": \"waitTime\",\n            \"browserUi\": {\n              \"inputs\": {\n                \"timeoutType\": \"fixed\",\n                \"timeout\": 1000\n              },\n              \"exception\": {\n                \"timeout\": 30000,\n                \"policy\": \"interrupt\"\n              }\n            }\n          }\n        }\n      ]\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt/browser-rpa/nodes"},"children":["Voltar ao catálogo de nós"]}]}]},"headings":[{"value":"Bloco de exceção","id":"bloco-de-exceção","depth":1},{"value":"O que faz","id":"o-que-faz","depth":2},{"value":"Configuração no cliente desktop","id":"configuração-no-cliente-desktop","depth":2},{"value":"Entradas","id":"entradas","depth":2},{"value":"Requisitos de modo e limites","id":"requisitos-de-modo-e-limites","depth":2},{"value":"Saídas","id":"saídas","depth":2},{"value":"Exemplo em JSON","id":"exemplo-em-json","depth":2}],"frontmatter":{"seo":{"title":"Bloco de exceção"}},"lastModified":"2026-11-20T14:40:39.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/pt/browser-rpa/nodes/structure/exception-block","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}