def rethrow(self, msg, _type=InvalidResourceException):
exc_type, exc_value, exc_traceback = sys.exc_info()<EOL>msg = msg +"<STR_LIT>".format(exc_type.__name__, exc_value)<EOL>raise _type(msg)<EOL>
Raises an exception with custom type and modified error message.
Raised exception is based on current exc_info() and carries it's traceback

@type msg: str
@param msg: New error message

@type _type: type
@param _type: Reraised exception type

@raises: Exception