{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-products/leandisposable/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Methods to manage errors","description":"Integration and usage documentation.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"methods-to-manage-errors","__idx":0},"children":["Methods to manage errors"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use these methods to retrieve info about the errors:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Methods:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-errors/lean-geterrors-method"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["getErrors"]}]},": use this method to get info about an error code"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-errors/lean-geterrors_v2-method"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["getErrors_v2"]}]},": use this method to get info about a specific error code or all errors code."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The main errors that can be found within this method are:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-2-empty-field"},"children":["Error 2"]}," : some required fields are missing"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-2084-the-insert-language-was-not-found-the-allowed-languages-are"},"children":["Error 2084"]},": The insert language was not found, the allowed languages are:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To get information about how to handle the errors: ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors"},"children":["How to handle errors"]}]}]},"headings":[{"value":"Methods to manage errors","id":"methods-to-manage-errors","depth":1}],"frontmatter":{"seo":{"title":"Methods to manage errors"}},"lastModified":"2026-01-21T12:05:16.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-errors","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}