Details
-
Improvement
-
Status: In Progress
-
Minor
-
Resolution: Unresolved
-
2.1.0
-
None
-
None
Description
Thrift classes are currently being generated without camel casing for method names. And the exception classes have a member variable called "msg". This generates, get_msg() and set_msg() method names. Since this class extends java Exception class, when an TException is thrown, the getMessage() method returns null and cannot be relied upon.
To get around this problem with getMessage() method, storm code has Wrapper classes, eg WrappedNotAliveException with a getMessage() method that return wraps get_msg() method in base class.
Proposed Change:
- Change the TException classes to rename member variable and generate camel cased class so that getMessage() is generated
- Limit the change to specific TException classes only to avoid large change
- Deprecate Wrapped classes