Return-Path: Delivered-To: apmail-avro-dev-archive@www.apache.org Received: (qmail 89817 invoked from network); 4 Jun 2010 01:24:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Jun 2010 01:24:18 -0000 Received: (qmail 8001 invoked by uid 500); 4 Jun 2010 01:24:18 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 7843 invoked by uid 500); 4 Jun 2010 01:24:18 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 7835 invoked by uid 99); 4 Jun 2010 01:24:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 01:24:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 01:24:16 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o541Ns3b006883 for ; Fri, 4 Jun 2010 01:23:54 GMT Message-ID: <27199.172491275614634446.JavaMail.jira@thor> Date: Thu, 3 Jun 2010 21:23:54 -0400 (EDT) From: "Jeff Hammerbacher (JIRA)" To: dev@avro.apache.org Subject: [jira] Commented: (AVRO-447) document protocol system error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AVRO-447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875409#action_12875409 ] Jeff Hammerbacher commented on AVRO-447: ---------------------------------------- Hey Doug, Also, I used the term "declared errors" instead of "specified errors" in my patch for AVRO-560. Perhaps "declared" can be used? Thanks, Jeff > document protocol system error > ------------------------------ > > Key: AVRO-447 > URL: https://issues.apache.org/jira/browse/AVRO-447 > Project: Avro > Issue Type: Bug > Components: spec > Affects Versions: 1.3.0 > Reporter: Doug Cutting > Assignee: Doug Cutting > Priority: Blocker > Fix For: 1.4.0 > > Attachments: AVRO-447.patch > > > Currently Java internally adds a type at the start of each protocol message's error list for system errors. This is used when an exception is encountered on the server while executing an RPC that does not match one of the messages declared errors. The type is "string", so it will never conflict with another error, since all other errors are defined as records. > For example, if a protocol has a message like: > {code} > "foo": { > "request": [], > "response": "null", > "errors": ["MyError"] > } > {code} > Then errors are written and read with the schema ["string", "MyError"], although that schema never appears publicly. > This should either be documented or changed. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.