From: Kenichi Komiya $@.
+ If the first argument is not an exception class or object, the
+ exception actually raised is determined by calling it's
+ exception method (baring the case when the argument is a
+ string in the second form). The exception method of that
+ class or object must return it's representation as an exception.
+
The fail is an alias of the raise.
rand(max)
*** ruby-man-1.4-dist/syntax.html Wed Dec 8 10:01:31 1999
--- ruby-man-1.4/syntax.html Tue Mar 14 19:54:54 2000
***************
*** 1622,1627 ****
--- 1622,1634 ----
the position in the source file is assigned to the $@.
+ If the first argument is not an exception class or object, the
+ exception actually raised is determined by calling it's
+ exception method (baring the case when the argument is a
+ string in the second form). The exception method of that
+ class or object must return it's representation as an exception.
+
The word `raise' is not the reserved word in Ruby.
raise is the method of the
Kernel module. There is an alias named
*** ruby-man-1.4-dist/Exception.html Fri Oct 15 04:24:24 1999
--- ruby-man-1.4/Exception.html Tue Mar 14 19:41:04 2000
***************
*** 29,40 ****
--- 29,45 ----
+ exception([error_message = ""])new([error_message = ""])Creates a new exception object. The error_message string can be supplied as the optional argument. The default exception handler at top leve, will show this error_message.
+exception is used internally by
+ raise.
+
"#{sourcefile}:#{sourceline}"
exceptionReturn self. This method is used internally by raise.
+
messageto_s