Home Index classes Index static functions Index enumerations Index structure types

{Errors|_to_work_with_system_errors}


CLASS {Errors|_to_work_with_system_errors} , UNTESTED, NATIVE, ABSTRACT :



Functions to work with errors found while running the application. There are stored not more then the first 4 and the last 5 errors between two calls of Last_errors / Reset_errors (error #4 becomes equal to "..." after 10 errors).


IMPORT : {NATIVE_Errors} , {String_functions} .


     

FUN Reset_errors || Clear_errors , NATIVE



FUN Last_errors|_and_reset ==> STR



FUN Count_errors || Errors_count ==> INT , NATIVE



FUN Errors|_by_index ( INT Index|_of_error ) ==> STR , NATIVE



FUN Add_custom_error ( STR E|rror_text ) , NATIVE


END