{"id":6189,"date":"2022-12-20T18:58:00","date_gmt":"2022-12-20T21:58:00","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/throw-mann\/"},"modified":"2022-12-20T18:58:00","modified_gmt":"2022-12-20T21:58:00","slug":"throw-mann","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/throw-mann\/","title":{"rendered":"throw (mann)"},"content":{"rendered":"<h1 align=\"center\">throw<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#KEYWORDS\">KEYWORDS<\/a> <\/p>\n<hr>\n<p>______________________________________________________________________________<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">throw \u2212 Generate a machine-readable error<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>throw<\/b> <i>type message<\/i> ______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This command causes the current evaluation to be unwound with an error. The error created is described by the <i>type<\/i> and <i>message<\/i> arguments: <i>type<\/i> must contain a list of words describing the error in a form that is machine-readable (and which will form the error-code part of the result dictionary), and <i>message<\/i> should contain text that is intended for display to a human being.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The stack will be unwound until the error is trapped by a suitable <b>catch<\/b> or <b>try<\/b> command. If it reaches the event loop without being trapped, it will be reported through the <b>bgerror<\/b> mechanism. If it reaches the top level of script evaluation in <b>tclsh<\/b>, it will be printed on the console before, in the non-interactive case, causing an exit (the behavior in other programs will depend on the details of how Tcl is embedded and used).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">By convention, the words in the <i>type<\/i> argument should go from most general to most specific.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The following produces an error that is identical to that produced by <b>expr<\/b> when trying to divide a value by zero.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>throw<\/b> {ARITH DIVZERO {divide by zero}} {divide by zero}<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">catch(n), error(n), errorCode(n), errorInfo(n), return(n), try(n)<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">error, exception<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  throw \u2212 Generate a machine-readable error <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3783,1],"tags":[2635,2827],"class_list":["post-6189","post","type-post","status-publish","format-standard","hentry","category-n-comandos-tcl-tk","category-sin-categoria","tag-mann","tag-throw"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6189"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6189\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}