3件ヒット
[1-3件を表示]
(0.094秒)
別のキーワード
検索結果
先頭3件
-
Exception
. exception(error _ message = nil) -> Exception (82207.0) -
例外オブジェクトを生成して返します。
例外オブジェクトを生成して返します。
@param error_message エラーメッセージを表す文字列を指定します。このメッセージは
属性 Exception#message の値になり、デフォルトの例外ハンドラで表示されます。
//emlist[例][ruby]{
e = Exception.new("some message")
p e # => #<Exception: some message>
p e.message # => "some message"
//}
//emlist[例][ruby]{
e = E... -
Exception
. new(error _ message = nil) -> Exception (36907.0) -
例外オブジェクトを生成して返します。
例外オブジェクトを生成して返します。
@param error_message エラーメッセージを表す文字列を指定します。このメッセージは
属性 Exception#message の値になり、デフォルトの例外ハンドラで表示されます。
//emlist[例][ruby]{
e = Exception.new("some message")
p e # => #<Exception: some message>
p e.message # => "some message"
//}
//emlist[例][ruby]{
e = E... -
Exception
. to _ tty? -> bool (27040.0) -
$stderr が変更されておらず、$stderr.tty? が真の場合は true を返します。
$stderr が変更されておらず、$stderr.tty? が真の場合は true を返します。
@see Exception#full_message