Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-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 2A3F5D48A for ; Tue, 19 Jun 2012 14:28:04 +0000 (UTC) Received: (qmail 32016 invoked by uid 500); 19 Jun 2012 14:28:03 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 31923 invoked by uid 500); 19 Jun 2012 14:28:03 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 31914 invoked by uid 99); 19 Jun 2012 14:28:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 14:28:03 +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: domain of simone.tripodi@gmail.com designates 209.85.215.171 as permitted sender) Received: from [209.85.215.171] (HELO mail-ey0-f171.google.com) (209.85.215.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 14:27:57 +0000 Received: by eaaa12 with SMTP id a12so2781357eaa.30 for ; Tue, 19 Jun 2012 07:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=0SkbaG5Xr31h7QRLa1M9T/taYxRBn8zvwq7vjqKFRhM=; b=jkv3izkXMXVSCiiKZs7lbSm7XKFmNOdMutApD5uPp8UqQPFgPvkYoP5xWZVMivt5bz IfCCTqShsYW0G2OUWz7xRIIV4ISDMAb0H/dCC6udnBcr54RRzq3TNf9LIiygrGGkYlAA 3EqfWsLJye1XfgIk16NreQtTbLpwd+1/sNXe4sTpNYlSVjJ+r3QXCO+cP3yC3IE7VQ0C 03nyy2JcfM/fUEfG6NomrmYmpB5/S1sZv8hZsjsG4e1YoJyPC4L27Iuqv9oMui+YEiWM HI4jgvPFz2CwAUIK0ICGRCVbR8FKZ1n3xZlWhCa5QfLPYLC52F2oR4+r4a5HOWMHf0nL e9Dw== MIME-Version: 1.0 Received: by 10.14.48.69 with SMTP id u45mr4336489eeb.214.1340116057206; Tue, 19 Jun 2012 07:27:37 -0700 (PDT) Sender: simone.tripodi@gmail.com Received: by 10.14.37.1 with HTTP; Tue, 19 Jun 2012 07:27:37 -0700 (PDT) In-Reply-To: References: Date: Tue, 19 Jun 2012 16:27:37 +0200 X-Google-Sender-Auth: rsrOQI1k2jcP1boUs-70SmkDVfo Message-ID: Subject: Re: [BeanUtils2] Some proposals for an exception name From: Simone Tripodi To: Commons Developers List Content-Type: text/plain; charset=UTF-8 > The point is with "Property %s not found in %s type" you're embedding the > relevant data in the message text and a client would have to parse the text > if a special handling is required. I would never force poor users parsing the exception message to understand what is wrong - I would add getters to the exception to retrieve both propertyName/targetClass of PropertyNotFoundException, in the same way users are used to invoke the getCause() method. Apologize for not having been explicit on this! -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org