[ 
https://issues.apache.org/jira/browse/THRIFT-1435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155559#comment-13155559
 ] 

Jens Geyer edited comment on THRIFT-1435 at 11/22/11 11:28 PM:
---------------------------------------------------------------

Patch:
- Library: procedure TException.Message made a function, allows reads, but 
still prevents writes
- Library: new method UpdateMessageProperty added, should be called when setup 
of the exception object is complete (exception factory does this automatically)
- CodeGen: toString()-support added for Exception objects
- CodeGen: call to UpdateMessageProperty added in the Exception factory method 
CreateException

(Patch tested on Ubuntu 11.10 against Trunk)
                
      was (Author: jensg):
    Patch:
- Library: procedure TException.Message made a function, allows reads, but 
still prevents writes
- Library: new method UpdateMessageProperty added, shpudl be called when setup 
of the exception object is complete (exception factory does this automatically)
- CodeGen: toString()-support added for Exception objects
- CodeGen: call to UpdateMessageProperty added in the Exception factory method 
CreateException

(Patch tested on Ubuntu 11.10 against Trunk)
                  
> make TException.Message property conformant to the usual expectations
> ---------------------------------------------------------------------
>
>                 Key: THRIFT-1435
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1435
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Delphi - Compiler, Delphi - Library
>    Affects Versions: 0.8
>            Reporter: Jens Geyer
>         Attachments: 
> THRIFT-1435_make_TException.Message_property_conformant_to_the_usual_expectations.patch
>
>
> In Delphi, Exceptions are expected to return a suitable error message when 
> e.message is being read. In contrast, all Thrift TExceptions did not support 
> this standard behaviour very well. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to