Re: [YANG] errors
Martin Bjorklund <mbj@tail-f.com> Thu, 24 January 2008 21:07 UTC
Return-path: <yang-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
by megatron.ietf.org with esmtp (Exim 4.43)
id 1JI9Ig-0003It-7D; Thu, 24 Jan 2008 16:07:54 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43)
id 1JI9If-0003Io-KR
for yang-confirm+ok@megatron.ietf.org; Thu, 24 Jan 2008 16:07:53 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org)
by megatron.ietf.org with esmtp (Exim 4.43) id 1JI9If-0003If-0B
for yang@ietf.org; Thu, 24 Jan 2008 16:07:53 -0500
Received: from [213.180.94.162] (helo=mail.tail-f.com)
by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JI9Ie-0003Qd-Js
for yang@ietf.org; Thu, 24 Jan 2008 16:07:52 -0500
Received: from localhost (c213-100-166-13.swipnet.se [213.100.166.13])
by mail.tail-f.com (Postfix) with ESMTP id EDAB91B80D7;
Thu, 24 Jan 2008 22:07:51 +0100 (CET)
Date: Thu, 24 Jan 2008 22:07:49 +0100 (CET)
Message-Id: <20080124.220749.135318331.mbj@tail-f.com>
To: ietf@andybierman.com
Subject: Re: [YANG] errors
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <4798FCA9.60500@andybierman.com>
References: <4798F7CF.3010203@andybierman.com>
<20080124.214232.175587160.mbj@tail-f.com>
<4798FCA9.60500@andybierman.com>
X-Mailer: Mew version 5.1.51 on Emacs 22.1 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 769a46790fb42fbb0b0cc700c82f7081
Cc: yang@ietf.org
X-BeenThere: yang@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: YANG modeling Language for NETCONF <yang.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/yang>,
<mailto:yang-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/yang>
List-Post: <mailto:yang@ietf.org>
List-Help: <mailto:yang-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/yang>,
<mailto:yang-request@ietf.org?subject=subscribe>
Errors-To: yang-bounces@ietf.org
Andy Bierman <ietf@andybierman.com> wrote: > Martin Bjorklund wrote: > > Andy Bierman <ietf@andybierman.com> wrote: > >> Martin Bjorklund wrote: > >>> Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote: > >>>> On Thu, Jan 24, 2008 at 08:41:49AM -0800, Andy Bierman wrote: > >>>> > >>>>> What if the DM writer wants to raise an existing standard error? > >>> That's what I meant when I wrote that the raise-error is in addition > >>> to the standard errors. I.e. nothing needs to be done in the DM for > >>> this scenario. > >>> > >> except there has to be a CLR that no error-app-tag value can be > >> one of the standard error-tag values. > > > > Why? > > > > > > error lock-denied { > error-tag operation-failed; > } > > ... > raise-error lock-denied; > > > Is this raise-error for the standard lock-denied or for the > vendor error called lock-denied, defined in the same module? The idea was (I think it came from you :) that the identifier for the error clause is error-app-tag. So the above would be in XML: <rpc-error> <error-tag>operation-failed</error> <error-app-tag>lock-denied</error-app-tag> </rpc-error> Thus, no name clash. Side note: the error-app-tag is defined as a string in rfc4741, but IMO is should have been a QName. If it was, all error-app-tags would be local per namespace, so the above would be: <error-app-tag xmlns:foo="...">foo:lock-denied</error-app-tag> /martin _______________________________________________ YANG mailing list YANG@ietf.org https://www1.ietf.org/mailman/listinfo/yang
- [YANG] errors Martin Bjorklund
- Re: [YANG] errors Juergen Schoenwaelder
- Re: [YANG] errors Phil Shafer
- Re: [YANG] errors Andy Bierman
- Re: [YANG] errors Martin Bjorklund
- Re: [YANG] errors Juergen Schoenwaelder
- Re: [YANG] errors Juergen Schoenwaelder
- Re: [YANG] errors Martin Bjorklund
- Re: [YANG] errors Andy Bierman
- Re: [YANG] errors Martin Bjorklund
- Re: [YANG] errors Andy Bierman
- Re: [YANG] errors Martin Bjorklund
- Re: [YANG] errors Andy Bierman
- Re: [YANG] errors Martin Bjorklund
- Re: [YANG] errors Andy Bierman
- Re: [YANG] errors Juergen Schoenwaelder
- Re: [YANG] errors Martin Bjorklund
- Re: [YANG] errors Juergen Schoenwaelder
- Re: [YANG] errors Martin Bjorklund