51. Crash

Handling crashes and recovery of other modules

51.1. Authors

  • Jiri Srain <jsrain@suse.cz>

51.2. Summary of Module Globals

List of Global Functions

  • AskRun - Check whether operation was last run in moment of last fail. Return whether operation shall be run If not, return true (no reason to think that operation is unsafe), Otherwise ask user

  • Failed - Check whether operation failed

  • FailedLast - Check whether operation was last started when failed

  • Finish - Finish operation

  • LastFinished - Get last finished operation

  • Read - Read settings from data file to variables

  • Run - Start operation

  • Write - Write data stored in variables to data files

List of Global Variables

  • filename - Filename of file storing crash settings

51.3. Global Functions

51.3.1. AskRun

Check whether operation was last run in moment of last fail. Return whether operation shall be run If not, return true (no reason to think that operation is unsafe), Otherwise ask user

Function parameters

  • string op

  • string question

Return value

  • boolean - true if operation shall be started

51.3.2. Failed

Check whether operation failed

Function parameters

  • string op

Return value

  • boolean - true if yes

51.3.3. FailedLast

Check whether operation was last started when failed

Function parameters

  • string op

Return value

  • boolean - true if yes

51.3.4. Finish

Finish operation

Function parameters

  • string op

Return value

  • void

51.3.5. LastFinished

Get last finished operation

Return value

  • string - operation name

51.3.6. Read

Read settings from data file to variables

Return value

  • void

51.3.7. Run

Start operation

Function parameters

  • string op

Return value

  • void

51.3.8. Write

Write data stored in variables to data files

Return value

  • void

51.4. Global Variables

51.4.1. filename

Filename of file storing crash settings

51.5. Module Requirements

51.5.1. Module Imports

  • Popup

51.5.2. Module Includes