Difference between revisions of "Error handling"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Draft}}
 
{{Draft}}
 +
[[wikipedia:Error handling]]
 +
  
 
* [[Bash]]:  
 
* [[Bash]]:  
** <code>[[set -e]]</code>
+
** <code>[[set -e]], [[set -u]]</code>
 
** <code>[[trap]]</code>
 
** <code>[[trap]]</code>
  
  
 
* [[Ansible]]:  
 
* [[Ansible]]:  
** <code>fail:</code>
+
** <code>[[fail:]]</code>
** <code>ignore_errors: true</code>
+
** <code>[[ignore_errors:]] [true|false]</code>
 +
** <code>[[any_errors_fatal:]] [true|false]</code>
 
https://docs.ansible.com/ansible/latest/user_guide/playbooks_error_handling.html#overriding-the-changed-result
 
https://docs.ansible.com/ansible/latest/user_guide/playbooks_error_handling.html#overriding-the-changed-result
  
 +
* [[Python]]:
 +
** [[Raise]]
 +
 +
== Related ==
 +
* [[Error tracking]]
 +
* [[Reason:]]
  
 
== See also ==
 
== See also ==

Latest revision as of 07:32, 7 February 2023

Advertising: