Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EBC0E1188E for ; Thu, 24 Apr 2014 13:24:00 +0000 (UTC) Received: (qmail 10207 invoked by uid 500); 24 Apr 2014 13:23:58 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 10125 invoked by uid 500); 24 Apr 2014 13:23:57 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 10109 invoked by uid 99); 24 Apr 2014 13:23:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 13:23:57 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [129.79.1.194] (HELO hartman.uits.indiana.edu) (129.79.1.194) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 13:23:31 +0000 X-IronPort-AV: E=Sophos;i="4.97,919,1389762000"; d="scan'208";a="132329021" Received: from mssg-relay.indiana.edu ([129.79.1.73]) by irpt-internal-relay.indiana.edu with ESMTP; 24 Apr 2014 09:23:04 -0400 Received: from hartman.uits.indiana.edu (hartman.uits.indiana.edu [129.79.1.194]) by mssg-relay.indiana.edu (8.14.7/8.14.4/IU Messaging Team) with ESMTP id s3ODMtQ1031139 for ; Thu, 24 Apr 2014 09:23:03 -0400 X-IronPort-AV: E=Sophos;i="4.97,919,1389762000"; d="scan'208";a="132265224" Received: from candy.uits.indiana.edu (HELO mail-relay.iu.edu) ([129.79.1.201]) by irpt-internal-relay.indiana.edu with ESMTP; 24 Apr 2014 09:23:03 -0400 Received: from 149-160-240-132.dhcp-bl.indiana.edu (149-160-240-132.dhcp-bl.indiana.edu [149.160.240.132]) (authenticated bits=0) by mail-relay.iu.edu (8.14.7/8.14.4/IU Messaging Team) with ESMTP id s3ODN3Dp023540 for ; Thu, 24 Apr 2014 09:23:03 -0400 Message-ID: <53591037.9020208@iu.edu> Date: Thu, 24 Apr 2014 09:23:03 -0400 From: Marlon Pierce User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: dev@airavata.apache.org Subject: Re: Conveying Errors through the Thrift API References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Saminda, can you explain this in more detail: "We felt that while option 1 is ideal for the requirement it is also unmanageable for both client and server if more and more exception types needs to be introduced over time. " What kinds of errors are we talking about? What actions should the client take? Marlon On 4/24/14 3:26 AM, Saminda Wijeratne wrote: > During an offline discussion related to the JIRA[1], it was made clear that > in an event of an exception at server side due to improper/invalid client > requests, the client should get back a proper error message which can be > programmed against. Two options were discussed, > > 1. Define exceptions in the thrift data model for each and every error > that can encounter and use them in the Thrift API > 2. Define a generic exception in the thrift data model which will have > tagged data identifying the exception > > We felt that while option 1 is ideal for the requirement it is also > unmanageable for both client and server if more and more exception types > needs to be introduced over time. Option 2 (while not a conventional way of > handling error) can circumvent this inconvenience by introducing a thrift > function to retrieve exact static error details (which can be updated at > the server side without needing to change the thrift model) based on the > tagged data. > > wdyt? > > 1. https://issues.apache.org/jira/browse/AIRAVATA-1142 >