error.bi | |
License | Copyright © 2007-2012, FreeBASIC Extended Library Development Group |
ext | |
Enumerations | |
Error Codes | Allows you easy access to every error code FreeBASIC can produce. |
Functions | |
GetErrorText | Retrieves the English description of an error number |
setError | Allows the user to set a custom error message for use in other code. |
getError | Returns the last error, as an integer code reported by the Extended Library or other user code. |
clearError | Clears any stored error code. |
Copyright © 2007-2012, FreeBASIC Extended Library Development Group
Distributed under the FreeBASIC Extended Library Group license. See accompanying file LICENSE.txt or copy at http://code.google.com
Enumerations | |
Error Codes | Allows you easy access to every error code FreeBASIC can produce. |
Functions | |
GetErrorText | Retrieves the English description of an error number |
setError | Allows the user to set a custom error message for use in other code. |
getError | Returns the last error, as an integer code reported by the Extended Library or other user code. |
clearError | Clears any stored error code. |
Allows you easy access to every error code FreeBASIC can produce.
ERR_NO_ERROR
ERR_ILLEGAL_FUNCTION_CALL
ERR_FILE_NOT_FOUND
ERR_FILE_IO_ERROR
ERR_OUT_OF_MEMORY
ERR_ILLEGAL_RESUME
ERR_ARRAY_OUT_OF_BOUNDS
ERR_NULL_POINTER_ACCESS
ERR_NO_PRIVILEGES
ERR_INTERRUPTED_SIGNAL
ERR_ILLEGAL_INSTRUCTION
ERR_FLOAT_ERROR
ERR_SEG_VIOLATION
ERR_TERMINATION_REQUEST
ERR_ABNORMAL_TERMINATION
ERR_QUIT_REQUEST
declare sub setError( byval err_num as integer, byref msg as string = "" )
Allows the user to set a custom error message for use in other code.
err_num | Integer value > 0 of the error code, user values should be above 100 |
msg | String containing the English description of the error (not necessary for built-in codes. (optional) |
Retrieves the English description of an error number
declare function GetErrorText ( byval err_number as integer ) as string
Allows the user to set a custom error message for use in other code.
declare sub setError( byval err_num as integer, byref msg as string = "" )
Returns the last error, as an integer code reported by the Extended Library or other user code.
declare function getError( ) as integer
Clears any stored error code.
declare sub clearError( )