CSETARGERR()
Sets argument error behaviour
- Syntax
-
- CSETARGERR ([<nNewMode>]) -> <nOldMode>
- Arguments
-
- [<nNewMode>] New argument error throwing mode
- Returns
-
- <nOldMode> The current or old argument error throwing mode.
- Description
-
- All CT3 functions are very compliant in their reaction to wrong parameters. By using the CSETARGERR() function, you can make the library throw an error with the severity <nNewMode>. It is then up to the error handler to substitute the return value. <nNewMode> can be one of the severity modes defined in ct.ch: CT_ARGERR_WHOCARES corresponds to ES_WHOCARES CT_ARGERR_WARNING corresponds to ES_WARNING CT_ARGERR_ERROR corresponds to ES_ERROR CT_ARGERR_CATASTROPHIC corresponds to ES_CATASTROPHIC CT_ARGERR_IGNORE The last is the default behaviour and switches any argument error throwing off.
- Status
-
- Ready
- Compliance
-
- CSETARGERR() is a new function in Harbour's CT3 library.
- Platforms
-
- All
- Files
-
- Source is ct.c, library is libct.