en:docs:fapi:doserrclass

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:docs:fapi:doserrclass [2021/09/17 13:05]
prokushev
en:docs:fapi:doserrclass [2021/11/04 14:55] (current)
prokushev
Line 1: Line 1:
 {{page>​en:​templates:​fapiint}} {{page>​en:​templates:​fapiint}}
 +
 +====== DosErrClass ======
 + 
  
 This call helps OS/2 applications respond to error codes (return codes) received from OS/2. This call helps OS/2 applications respond to error codes (return codes) received from OS/2.
  
-====== Syntax ​======+===== Syntax =====
 <code c> <code c>
 DosErrClass (Code, Class, Action, Locus) DosErrClass (Code, Class, Action, Locus)
 </​code>​ </​code>​
  
-====== Parameters ​======+===== Parameters =====
  
   * Code ([[USHORT]]) - input : Error code returned by an OS/2 function.   * Code ([[USHORT]]) - input : Error code returned by an OS/2 function.
Line 15: Line 18:
   * Locus ([[PUSHORT]]) - output : Address of the origin of an error.   * Locus ([[PUSHORT]]) - output : Address of the origin of an error.
  
-====== Return Code ======+===== Return Code =====
  
 rc ([[USHORT]]) - return:​Return code descriptions are: rc ([[USHORT]]) - return:​Return code descriptions are:
Line 21: Line 24:
   * 0 NO_ERROR   * 0 NO_ERROR
  
-====== Remarks ​======+===== Remarks =====
  
 The input is a return code returned from another function call, and the output is a classification of the return and recommended action. Depending on the application,​ the recommended action could be followed, or a more specific application recovery could be performed. The input is a return code returned from another function call, and the output is a classification of the return and recommended action. Depending on the application,​ the recommended action could be followed, or a more specific application recovery could be performed.
Line 60: Line 63:
 |5|MEM|Memory| |5|MEM|Memory|
  
-===== Family API Considerations ​=====+==== Family API Considerations ====
  
 Some options operate differently in the DOS mode than in the OS/2 mode. Therefore, the following considerations apply to DosErrClass when coding for the DOS mode: Some options operate differently in the DOS mode than in the OS/2 mode. Therefore, the following considerations apply to DosErrClass when coding for the DOS mode:
Line 66: Line 69:
 When DosErrClass is called by a family application,​ it returns a valid error classification for returns that have occurred. The classifications of a given return code may not be the same for the Family API and the OS/2 mode applications. ​ When DosErrClass is called by a family application,​ it returns a valid error classification for returns that have occurred. The classifications of a given return code may not be the same for the Family API and the OS/2 mode applications. ​
  
-====== Bindings ​======+===== Bindings =====
  
-===== C =====+==== C ====
  
 <code c> <code c>
Line 83: Line 86:
 </​code>​ </​code>​
  
-===== MASM =====+==== MASM ====
  
 <code asm> <code asm>

en/docs/fapi/doserrclass.txt · Last modified: 2021/11/04 14:55 by prokushev