reason property

String? reason
getter/setter pair

This is the reason of the crash You can write here if you expect a reason of crash depending on the function

For example: You created a function with try catch and that function might take too long In this case you would expect a failure and report if it take more 3 seconds You write "Connection timed out"

Implementation

String? reason;