Control Structures
These are examples of control structures. You may also be interested in:

 Conditional structures
 Exceptions
 Flow-control structures
 Loops

This task is to give an example of an exception handling routine
and to "throw" a new exception.



Related task

   Exceptions Through Nested Calls


( ( MyFunction
  =   someText XMLstuff
    .   (   get$!arg:?someText
          & get$("CorporateData.xml",X,ML):?XMLstuff
        |     out
            $ ( str
              $ ( "Something went wrong when reading your file \""
                  !arg
                  "\". Or was it the Corporate Data? Hard to say. Anyhow, now I throw you out."
                )
              )
          & ~
        )
      & contemplate$(!someText,!XMLstuff)
  )
& MyFunction$"Tralula.txt"
);