Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > raise

Reply
Thread Tools

raise

 
 
Justin To
Guest
Posts: n/a
 
      06-27-2008
Hi,

Can you create your own raise types?

I know there's raise NotImplementedError, for instance, but I want to
make a custom one with a string.

Thanks!
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Martin DeMello
Guest
Posts: n/a
 
      06-27-2008
On Fri, Jun 27, 2008 at 3:01 PM, Justin To <(E-Mail Removed)> wrote:
> Hi,
>
> Can you create your own raise types?


Sure - take a look at
http://weblog.jamisbuck.org/2007/3/7...ight-exception

martin

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Raise X or Raise X()? bvdp Python 10 03-12-2012 04:08 PM
"raise (type, value, traceback)" and "raise type, value, traceback" Jack Bates Python 0 05-02-2011 05:23 PM
raise Exception or raise Exception() ernest Python 2 11-14-2010 08:14 PM
raise or not to raise [Newbie] Jacol Python 5 02-05-2007 11:46 PM
Any raise or better job after get MCSD for .NET MCSD 6 05-04-2004 05:51 PM



Advertisments