🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.programmer
Article #671

Re: New Exception.

#671
From: Bill Wilkinson
Date: Mon, 19 Jan 1998 00:00
29 lines
1314 bytes
Juan Carlos wrote:
> 
> Hi !
> 
> Somebody knows how is it the best way to generate my own Exception?
> 
> Here, I think this idea. Is good?

	NO.

	You should NOT create another exception from with
	your exception's constructor.

	Follow the lead of the other exception classes:


---------------------------------------------------------------------
public class NotCanSendException extends Exception
{
      public NotCanSendException( ) 
      {
           super( ); // not really needed; won't hurt
      }
      public NotCanSendException( String notSend ) 
      {
           super( notSend ); // MUST have this
      }
}
Technical Details
Message-ID: <34C3E10D.3548@SuperCede.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34C38D16.AA3B5ACA@uco.es>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a146,bd68446788f6f08f
X-Google-Attributes: gid10a146,public
X-Google-Thread: 1116f3,bd68446788f6f08f
X-Google-Attributes: gid1116f3,public
From: Bill Wilkinson <BillW@SuperCede.com>
Subject: Re: New Exception.
Date: 1998/01/19
Message-ID: <34C3E10D.3548@SuperCede.com>
X-Deja-AN: 317493288
Content-Transfer-Encoding: 7bit
References: <34C38D16.AA3B5ACA@uco.es>
Mime-Version: 1.0
Reply-To: Billw@SuperCede.com
To: Juan Carlos <ct2buvij@uco.es>
Content-Type: text/plain; charset=us-ascii
Organization: SuperCede, Inc.
Newsgroups: comp.lang.java.programmer,es.comp.lenguajes.java