Created Factory class to pass arbitrary text to an error dialog fragment