| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ErrorClass > ErrorClass Methods >====== TakeError (process specified error) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[takebenign process benign error .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[takefatal process fatal error .htm|{{btn_next_n.gif|Next page}}]] | | || **TakeError(**// error id //**), PROC** {{blk2blue.jpg|blk2blue.jpg}} | **TakeError** | Locates the specified error, calls the appropriate method to handle it, then returns the severity level. | | //error id// | An integer constant, variable, EQUATE, or expression that indicates which error to process. | The **TakeError** method locates the specified error, then based on its severity level calls the appropriate (Take//Level//) method to process the error, then returns the severity level. TakeError assumes SetErrors has already been called to save the current error state. **Implementation:** The ABERROR.INC file contains a list of default symbolic constants for the //error id //parameter. By default, the error manager recognizes six different levels of error severity. The TakeError method calls a different virtual method (Take//Level//) for each severity level, which makes it easy to override the default error actions with your own application-specific error actions. The recognized severity EQUATEs are declared in ABERROR.INC. These severity levels and their default actions are: | ** ** | **Level:Benign** | **no action, returns Level:Benign** | | ** ** | **Level:User** | **displays message, returns Level:Benign or Level:Cancel** | | ** ** | **Level:Notify** | **displays message, returns Level:Benign** | | ** ** | **Level:Fatal** | **displays message, halts the program** | | ** ** | **Level:Program** | **treated as Level:Fatal** | | ** ** | **any other value** | **treated as Level:Program** | **Return Data Type:**     BYTE **See Also:**     [[errors recognized error definitions .htm|Errors]], [[seterrors save the error state .htm|SetErrors]], [[takebenign process benign error .htm|TakeBenign]], [[takenotify process notify error .htm|TakeNotify]], [[takeuser process user error .htm|TakeUser]], [[takefatal process fatal error .htm|TakeFatal]], [[takeprogram process program error .htm|TakeProgram]], [[takeother process other error .htm|TakeOther]], [[throw process specified error .htm|Throw]]