Based on the title you want to have a some sort of global variable, one way is you can try using flowVars as a quick fix. Using Mule Studio it is the same as Variable (under Transformers).
The message you get inside the catch exception strategy is the exception.