Thrift::Parser::Message - Message object
Returns the Thrift::Parser::Method class that is represented in this message.
Returns the Thrift type id of this message.
A Thrift sequence ID.
A Thrift::Parser::FieldSet object representing the arguments of this message.
my $reply_message = $message->compose_reply($reply);
A helper method, use this to compose a new message which is a reply to another message. Expects the type of the reply to correspond with the "return_class" in Thrift::Parser::Method. seqid is inherited.
seqid
my $reply_message = $message->compose_reply_exception($exception); my $reply_message = $message->compose_reply_exception({ ouch => { message => 'you made a mistake, } });
A helper method, use this to compose a new message which is a reply to another message. Expects the type of the reply to correspond with one of the "throw_classes" in Thrift::Parser::Method. seqid is inherited. You may pass it a blessed object or a hashref with one key (the name of the throw you're using).
my $reply_message = $message->compose_reply_application_exception($error, $code);
A helper method, use this to compose a new message which is a reply to another message. Throws as TApplicationException with the error message and code as passed. seqid is inherited.
Copyright (c) 2009 Eric Waters and XMission LLC (http://www.xmission.com/). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Eric Waters <ewaters@gmail.com>
To install Thrift::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Thrift::Parser
CPAN shell
perl -MCPAN -e shell install Thrift::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.