Topic: APLX Help : Help on APL language : System Functions & Variables : ⎕EM Error Matrix
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

⎕EM Error Matrix


⎕EM contains the current error message as a character matrix. The initial value of ⎕EM is 3 0⍴' ' and it is reset to this value by )RESET or )SICLEAR. Note that the error message can originate from calculator mode errors or errors within defined functions. ⎕EM is implicitly localised in that it shows the error message which relates to the most currently pendent function on the SI stack - see the earlier chapter on Error Handling for more details.

             )RESET
             ⍴⎕EM                    (Default value of ⎕EM)
       3 0
             45×'NAME'               (Standard error report)
       DOMAIN ERROR
             45×'NAME'
             ^
             ⍴⎕EM                    (Size of ⎕EM after the error)
       3 15
             ⎕EM                     (Contents of ⎕EM are the same as the
       DOMAIN ERROR                   error message above)
             45×'NAME'
             ^
             )RESET                  (Clear ⎕EM)
             ⍴⎕EM
       3 0

Topic: APLX Help : Help on APL language : System Functions & Variables : ⎕EM Error Matrix
[ Previous | Next | Contents | Index | APL Home ]