Error() > Instance variables xHarbour Developers Network  

oError:genCode

Generic numeric error code.

Info

Data type:NDefault:NIL

Description

The instance variable contains a numeric value representing a generic error code. If :genCode contains zero, an unknown error has occurred. #define constants are listed in Error.ch for other generic error conditions.

Generic error codes
ConstantValueDescription
EG_ARG1Argument error
EG_BOUND2Bound error
EG_STROVERFLOW3Bound error,
EG_NUMOVERFLOW4Numeric overflow
EG_ZERODIV5Zero divisor
EG_NUMERR6Zero divisor
EG_SYNTAX7Syntax error
EG_COMPLEXITY8Operation too complex
EG_MEM11Memory low
EG_NOFUNC12Undefined function
EG_NOMETHOD13No exported method
EG_NOVAR14Variable does not exist
EG_NOALIAS15Alias does not exist
EG_NOVARMETHOD16No exported variable
EG_BADALIAS17Illegal characters in alias
EG_DUPALIAS18Alias already in use
EG_NOOBJECT19Not an object
EG_CREATE20Create error
EG_OPEN21Open error
EG_CLOSE22Close error
EG_READ23Read error
EG_WRITE24Write error
EG_PRINT25Print error
EG_UNSUPPORTED30Operation not supported
EG_LIMIT31Limit exceeded
EG_CORRUPTION32Corruption detected
EG_DATATYPE33Data type error
EG_DATAWIDTH34Data width error
EG_NOTABLE35Workarea not in use
EG_NOORDER36Workarea not indexed
EG_SHARED37Exclusive required
EG_UNLOCKED38Lock required
EG_READONLY39Write not allowed
EG_APPENDLOCK40Append lock failed
EG_LOCK41Lock Failure
EG_ARRACCESS46array access
EG_ARRASSIGN47array assign
EG_ARRDIMENSION48array dimension
EG_NOTARRAY49not an array
EG_CONDITION50conditional
EG_BADSELF51Invalid self
EG_ARRREF52reserved
EG_OLEEXECPTION1001(OLE exception occurred)

Note:  if an Error object is created in a user-defined error handling routine, the above generic error codes should be used, if possible. A textual description of the error can then be retrieved using HB_LangErrMsg() which is then assigned to oError:description.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe