Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ZIBERCD

ZIBERCD.m

Go to the documentation of this file.
  1. ZIBERCD ;DJM;DISPLAY ERROR CODE DEFINITIONS;[ 8/13/89 4:00 PM ]
  1. ; COPYRIGHT MICRONETICS DESIGN CORP @1990
  1. S $ZT="ERR^ZIBERCD"
  1. W !?10,$P($P($ZV,","),"-")," - Error Code Description Utility"
  1. N EC,EXP,I
  1. CODE ;
  1. W !!,"Error code: " R EC G:EC="^Q"!(EC="^q")!("^"[EC) EXIT
  1. G MM:EC?1.N1":"1.N,ZV:EC?1.N,TXT:EC?1"<"5U1">",DISP:EC?5U
  1. W !,*7,?5,"Enter error code in following format:"
  1. W !,?7,"major:minor",?28,"Example: 4:1"
  1. W !,?7,"<text>",?28,"Example: <SYNTX>"
  1. W !,?7,"nnn",?28,"Error code from $ZVERIFY(), ex: 21"
  1. G CODE
  1. MM ;major:minor
  1. S EC=$P(EC,":")_$P(EC,":",2) G DISP
  1. ZV ;$ZV
  1. S EC=99_EC G DISP
  1. TXT ;<text>
  1. S EC=$E(EC,2,6)
  1. DISP ;
  1. S EXP=$T(@EC) I EXP="" W *7," ... no such error code on file" G CODE
  1. W !,?5,$P(EXP,";",2,99)
  1. F I=1:1 S EXP=$T(@EC+I) Q:EXP=""!($P(EXP," ")'="") W !,?5,$P(EXP,";",2,99)
  1. G CODE
  1. EXIT ;
  1. Q
  1. ERR ;
  1. I $F($ZE,"<INRPT>") U 0 W !!,"...Aborted." D EXIT V 0:$J:$ZB($V(0,$J,2),#0400,7):2
  1. ZQ
  1. ;error codes
  1. 21 ; missing parenthesis
  1. 22 ; missing or bad colon
  1. 23 ; missing or bad equal
  1. 24 ; missing or bad local variable
  1. 25 ; missing or bad global variable
  1. 26 ; missing or bad function
  1. 27 ; missing or bad routine name
  1. 28 ; missing or bad routine label
  1. 29 ; missing or bad routine displacement
  1. 210 ; indirect argument error
  1. 211 ; argument condition error
  1. 212 ; bad argument delimiter
  1. 213 ; bad command
  1. 30 ; bad special variable name
  1. 31 ; bad system function
  1. 32 ; bad local variable name
  1. 33 ; bad global variable
  1. 34 ; bad string constant
  1. 35 ; bad numeric constant
  1. 36 ; unbalanced parenthesis
  1. 37 ; invalid systax in term
  1. 38 ; bad operator
  1. 39 ; bad delimiter
  1. 40 ; undefined local variable
  1. 41 ; undefined global variable
  1. 42 ; undefined routine label
  1. 43 ; undefined routine name
  1. 44 ; bad naked reference
  1. 45 ; non-existant device
  1. 46 ; unsubscripted local reference required
  1. 47 ; variable reference required.. no expressions
  1. 48 ; zload/zremove command not inside of execute string
  1. 49 ; undefined uci reference
  1. 410 ; insertion of null line is illegal
  1. 411 ; unknown data type
  1. 412 ; missing parameter
  1. 413 ; undefined system reference
  1. 414 ; global access protection violation
  1. 415 ; VIEW command restriction
  1. 416 ; ZCALL error
  1. 417 ; Formal List not entered via DO command
  1. 418 ; QUIT with argument inside FOR scope
  1. 419 ; QUIT with argument, but routine not extrinsic
  1. 420 ; argumentless QUIT, but routine was extrinsic
  1. 421 ; end of extrinsic subroutine encountered without QUIT parm
  1. 422 ; label requires a Formal List
  1. 423 ; Actual List contains more parms than Formal List
  1. 424 ; Formal List parameter is subscripted variable
  1. 425 ; duplicate variable name in Formal List
  1. 426 ; passing a value by reference in JOB command not allowed
  1. 50 ; string exceeded maximum length
  1. ; 4092 for locals, 255 for globals
  1. 51 ; select function error (all elements evaluated to FALSE)
  1. 52 ; attempt to divide by zero
  1. 53 ; negative number where only zero or positive values allowed
  1. 54 ; maximum number
  1. 55 ; attempt to access a non-opened device
  1. 56 ; maximum memory
  1. 57 ; string value required
  1. 58 ; name indirection resulted in null value
  1. 59 ; name indirection resolved into more than pure variable name
  1. ; ex: SET X=@Y where Y="ABC+2" (the '+2' is illegal)
  1. 510 ; selected partition not active ($VIEW)
  1. 511 ; invalid VIEW/$VIEW() parameter
  1. 512 ; function parameter out of range
  1. 513 ; subscript contains $C(0), or is null, or total global reference
  1. ; exceeds 255 characters (including delimiters)
  1. 514 ; attempt to read/write file when file not opened for that access
  1. ; ex: writing to a file that is opened for input
  1. ; reading from a file that is opened for output
  1. ; reading from a file that is opened for input but was not found
  1. ; during open processing ($ZA/$ZB indicate if file was found)
  1. 515 ; invalid kanji or compressed shiftjis char
  1. 516 ; not allowed to write to block 0
  1. 517 ; invalid use of shared mode on VIEW buffer
  1. 60 ; break key depressed
  1. 61 ; attempt to exceed partition size limit set at 'logon' time
  1. 62 ; halt command executed
  1. 63 ; lock table full
  1. 64 ; BREAK command detected
  1. 65 ; expression stack overflowed (expression too complex or operands of
  1. ; string operations too long)
  1. 66 ; system stack overflow (DO/XECUTE/INDIRECTION nesting is too deep)
  1. 67 ; old pcode.. need to ZLOAD and ZSAVE (run the %RELOAD utility)
  1. 68 ; ddp error
  1. ; can be caused by: SET X="XECUTE X" X X
  1. 69 ; reserved for DDP internal use
  1. 610 ; DDP database access inhibited
  1. 611 ; MUMPS to MUMPS communication failure
  1. 612 ; I/O error on terminal operation
  1. 613 ; I/O error on magnetic tape operation
  1. 614 ; pcode too long to fit in one block
  1. 615 ; ZQUIT error
  1. 616 ; DDP circuit disabled
  1. 71 ; bad block type in global directory block
  1. 72 ; bad block type in pointer block
  1. 73 ; bad block type in global data block
  1. 74 ; bad block type in extended global data block
  1. 75 ; bad block type in routine directory block
  1. 76 ; bad block type in routine header block
  1. 77 ; bad block type in routine block
  1. 78 ; bad block type in map block
  1. 79 ; bad block type in journal block
  1. 710 ; bad block type in sequential-block-processor block
  1. 711 ; hardware i/o error (unable to read/write database block)
  1. 712 ; disk full (if this occurs on a SET of a global variable, you MUST
  1. ; use ^VALIDATE in Manager's UCI to validate the global since it
  1. ; is likely that the global has become corrupt since the SET did
  1. ; not complete normally (you may need to use ^DBFIX to correct)
  1. 713 ; mismatch of block number id in block header
  1. 714 ; global data/pointer block 'string+key' is too long, proper
  1. ; block split can't be performed
  1. 715 ; unable to open database
  1. 716 ; block being freed already marked as free
  1. ; use ^VALIDATE and ^DBFIX in manager's UCI to correct problem
  1. 717 ; invalid block number to driver
  1. BKERR ; BREAK command was executed
  1. CMMND ; illegal or undefined command
  1. CLOBR ; zload/zremove command not inside execute statement
  1. DDPER ; ddp error
  1. DIVER ; attempt to divide by zero
  1. DKFUL ; all space on the disk has been exhausted
  1. DKHER ; disk physical i/o error (can't read/write a block in database)
  1. DKSER ; incorrect block type in block header (ex: reading in a 'data'
  1. ; block but header in block indicates a 'directory' block)
  1. ; use ^VALIDATE and ^DBFIX in manager's UCI to correct problem
  1. DPARM ; invalid use of parameter passing
  1. DSCON ; telephone associated with the device has been disconnected
  1. FUNCT ; illegal or undefined function
  1. INDER ; invalid use of the indirection operator
  1. INRPT ; control-c or 'break' key detected
  1. ISYNT ; invalid syntax of a line being ZINERTed into a routine
  1. LINER ; reference made to a non-existent label
  1. MAPER ; blk being freed already marked as free
  1. MINUS ; positive number was expected
  1. MODER ; read/write to file when incorrect read/write mode
  1. MSMCX ; in memory communication path between tasks has been interrupted
  1. MTERR ; magnetic tape Inpt/Output error
  1. MXNUM ; number is greater than maximum allowed
  1. MXMEM ; invalid memory specification in VIEW cmnd
  1. MXSTR ; string exceeds maximum length
  1. NAKED ; naked reference is invalid
  1. NODEV ; attempt to open an undefined device
  1. NOMEM ; attempt to access a nonexistant or protected memory location
  1. NOPEN ; attempt to use an unopened device
  1. NOPGM ; routine not found in directory
  1. NOSYS ; reference to a non-existent volume group through extended global notation
  1. NOUCI ; reference to a non-existent UCI through extended global notation
  1. PCERR ; invalid post-conditioned
  1. PGMOV ; no memory left in partition
  1. PLDER ; old pcode.. need to ZLOAD and ZSAVE (run the %RELOAD utility)
  1. SBSCR ; invalid subscript specfication
  1. SYNTX ; invalid syntax in expression, command, etc
  1. SYSTM ; system error (should not occur)
  1. UNDEF ; local or global reference is undefined
  1. PROT ; access protection violation
  1. SBSCR ; invalid subscript in a local or global variable
  1. STKOV ; system stack has overflowed due to nested indirection, program loop, etc.
  1. SYNTX ; a syntax error has been encountered by the interperter
  1. SYSTM ; an internal MUMPS error, shutdown system and reboot
  1. VWERR ; invalid use of the shared VIEW buffer mode
  1. ZCERR ; old pcode.. need to ZLOAD and ZSAVE
  1. ZLZSV ; old pcode.. need to ZLOAD and ZSAVE
  1. BADCH ; invalid kanji/shiftjis character
  1. 99 ; buffer validation error codes
  1. 991 ; unknown block type
  1. 992 ; unknown data type in block
  1. 993 ; block type mis-match of descendent block
  1. 994 ; block not marked allocated in map block
  1. 995 ; right hand link doesnt match next downlink of ptr
  1. 996 ; block number field in block is incorrect
  1. 9910 ; non-zero common count for leading key in blk
  1. 9911 ; zero length unique part of key
  1. 9912 ; common > common+unique of previous key
  1. 9920 ; length of leading key doesnt match expected value
  1. 9921 ; leading key doesnt match expected value
  1. 9930 ; keys not in ascending order
  1. 9931 ; key not higher than high key in subtree
  1. 9940 ; hdrnext() inconsistent with actual end
  1. 9950 ; zero pointer to lower level
  1. 9951 ; cyclic loop in pointer block(s)
  1. 9952 ; cyclic loop in right link of routine blocks
  1. 9960 ; incorrect offset to first free slot in map block
  1. 9961 ; incorrect free count in map block
  1. 9963 ; map block in illegal location (valid: 1, 513, ... 512*n+1)
  1. 9964 ; map block not allocated to SYSTEM