Talk:Exception handling syntax

message: Hi,
there is a followin snippet of pseudocode in Exception handling:
 try {
  line = console.readLine();
  if (line.length() == 0) {
   throw new EmptyLineException("The line read from console was empty!");
  }
  console.printLine("Hello %s!" % line);
 } catch (EmptyLineException e) {
  console.printLine("Hello!");
 } catch (Exception e) {
  console.printLine("Error: " + e.message());
 } else {
  console.printLine("The program ran successfully");
 } finally {
  console.printLine("The program terminates now");
 }
in indicates that a program can act in some way when everything went successfully and in a different way if something was broken. I am missing in my knowledge how to make that "if error {} else {}". Could you, please, extend and edit this article (at least for C++) so I can learn how to implement it really? Thank you in advance!
: Sorry, not all programming languages support that feature. Looking at the article we have here, it seems only Python and Ruby have else, and that we know of no other name for it either. 
: However, you should note that all of these features can be written in some other way if the direct way is not available. In some cases, you can put to the end of the try block anything you'd want to put to the else block, because the end of the try block is reached only if there weren't exceptions. --TuukkaH 19:53, 25 April 2006 (UTC)
thread_title:  ''Else'' in C++ 

message: Hello.  I just tagged this page with .  It doesn't seem to fit the model of an Encyclopaedia article; maybe it should be moved to WikiBooks?  —Preceding unsigned comment added by AlastairIrvine (talk • contribs) 07:53, 18 January 2010 (UTC)
replies: text: There's some truth and logic in that, but we tend to make an exception for articles on programming language and OS commands (e.g. chmod). Actually this is kind of in the nature of a list article. Tisane talk/stalk  02:42, 29 June 2010 (UTC)
thread_title:  Appropriateness of this page for Wikipedia 

message: What about the throw command in PHP? Would it be appropriate to list that here? Tisane talk/stalk  02:40, 29 June 2010 (UTC)
thread_title:  Throw command 

message: There are a few cases where "Finally" is said to always be called. This is not true; it is only called if the thread continues to execute. Killing a process or a thread within it will not result in the finally clause being called. 84.12.212.235 (talk) 16:29, 5 December 2012 (UTC)
thread_title:  Finally 

message: I was trying to find somewhere in Wikipedia mention of IBMs OS/360 and successor SPIE (Specify Program Interrupt Exit).  This is the user-mode way to get control for hardware exceptions. I think it is close to this article, but isn't mentioned.  Also, possibly unlike some others, it allows one to return to where one came from, possibly after fixing things up. For example, in overflow one might stuff in the largest possible value and continue on. Otherwise, it looks like the article has much Unix specific notation. Gah4 (talk) 14:04, 13 June 2019 (UTC)
thread_title:  SPIE 

message: EH with resumes adds a critical feature of resumes from exception handling code to continue execution like there was no an exception. => the Exception handling syntax should demo it for all this langs.
Sorry I can't include the additions since have not found the appropriate code examples :(... The topic looks like out of general discussion for unknown to me reason. Pavel Senatorov (talk • contribs) 22:16, 27 November 2019 (UTC)
thread_title:  Propose to cover EH langs with resumes: PL/I Mesa Mythril