logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SEMESS - Called by a user to get a specified portion of the current error message.

Access

       To use SEMESS or c_semess, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably  in
       that order.

C-Binding Description

       The C-binding argument descriptions are the same as the FORTRAN argument descriptions.

C-Binding Synopsis

       #include <ncarg/ncargC.h>

       char *c_semess(int itrim)

Description

       In any routine that references SEMESS, it must be declared to be of type CHARACTER*113.

       If the internal error flag of SETER is non-zero, the value of the character expression "SEMESS(ITRIM)" is
       the remembered error message associated with that error flag, trimmed as indicated by the value of the
       input quantity ITRIM.  Otherwise, it is a string of blanks.

       When ITRIM = 0 or less, no trimming is done; the whole error message is returned.  When ITRIM = 1,
       prepended routine names and the associated slashes are trimmed off.  When ITRIM = 2 or greater, all
       leading routine names are trimmed off; just the error description is returned.

       Example: Assume that the current error message is the string "CPCLAM/AREDAM - AREA-MAP ARRAY OVERFLOW";
       then, SEMESS(0) is that entire string, while SEMESS(1) = "AREDAM - AREA-MAP ARRAY OVERFLOW", and
       SEMESS(2) = "AREA-MAP ARRAY OVERFLOW".

       The argument of SEMESS is as follows:

       ITRIM       (an  input  expression  of  type  INTEGER)  -  Says  what  part of the error message is to be
                   returned, as detailed above.

Examples

       Use the ncargex command to see the following relevant examples: tseter, arex02.

Name

       SEMESS - Called by a user to get a specified portion of the current error message.

See Also

       Online: entsr, eprin, errof, error_handling, fdum, icfell, icloem, nerro, retsr, seter, ncarg_cbind

Synopsis

       MESSG = SEMESS(ITRIM)

See Also