| United States-English |
|
|
|
![]() |
MPE/iX Intrinsics Reference Manual: HP e3000 MPE/iX Computer Systems > Chapter 2 Intrinsic UseError Handling |
|
Three types of errors can occur when an intrinsic is executed:
Some intrinsics have an associated condition code. A condition code is a temporary value providing information about what happened during execution. The condition code is affected by many intrinsics and should be checked immediately upon return from an intrinsic. A condition code has three possible values (CCG, CCL, or CCE) and has the general meaning as indicated in Table 2-3 “Condition Code Descriptions” Specific meanings are listed under the individual intrinsic called. Table 2-3 Condition Code Descriptions
Some intrinsics use the status parameter to return information on the status of the intrinsic call. This parameter is a native mode (NM) implementation of the condition code feature with extended capabilities. The status parameter is a 32-bit signed integer value passed by reference.
The status parameter is read in two 16-bit fields:
and represent the possible values returned by the status parameter. Table 2-4 Status.subsys Parameter Identifiers
Table 2-5 Status.info Parameter Identifiers
Software traps are interrupts generated by software events in which the operating system interrupts the normal flow of a process' execution. Some intrinsics generate a software trap when they detect certain error conditions. Normally, if an intrinsic causes a trap, the system trap handler aborts the user program. However, you can write a procedure to handle abort errors and use it in place of the default system trap handler, which will permit recovery from errors in certain cases. For more information on handling traps, refer to Trap Handling Programmer's Guide. When a program is aborted in a batch job, the operating system removes the job from the system unless you precede the command that caused the error with a CONTINUE command. If the program is aborted in an interactive session, the system returns control to the parent process. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||