153件ヒット
[1-100件を表示]
(0.114秒)
ライブラリ
- ビルトイン (56)
- getoptlong (12)
-
minitest
/ unit (1) -
net
/ http (24) -
net
/ imap (24) - optparse (24)
-
rubygems
/ specification (12)
クラス
- Exception (44)
-
Gem
:: Specification (12) - GetoptLong (12)
-
Net
:: HTTPResponse (24) -
Net
:: IMAP :: BodyTypeMessage (24) -
OptionParser
:: ParseError (24) - SignalException (12)
モジュール
キーワード
-
content
_ id (12) - description (12)
-
exception
_ details (1) - inspect (12)
- msg (12)
- signm (12)
-
to
_ s (24)
検索結果
先頭5件
-
Exception
# message -> String (21210.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
Net
:: HTTPResponse # message -> String (21210.0) -
HTTP サーバがリザルトコードに付加して返すメッセージです。 例えば 'Not Found' などです。
...して返すメッセージです。
例えば 'Not Found' などです。
msg は obsolete です。使わないでください。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.message # => "OK"
//}... -
OptionParser
:: ParseError # message -> String (21204.0) -
標準エラーに出力するメッセージを返します。
標準エラーに出力するメッセージを返します。
@return 文字列を返します。 -
MiniTest
:: Assertions # exception _ details(exception , message) -> String (9409.0) -
与えられた例外の詳細を文字列として返します。
...与えられた例外の詳細を文字列として返します。
@param exception 例外を指定します。
@param message メッセージを指定します。... -
Exception
# full _ message(highlight: true , order: :bottom) -> String (9221.0) -
例外の整形された文字列を返します。
...Exception.to_tty? の返り値と同じです。
@param order :top か :bottom で指定する必要があります。
バックトレースの一番奥がエラーメッセージの上(top)か下(bottom)かを指定します。
デフォルト値は Exception.to_tty? が......ue => e
p e.full_message # => "\e[1mTraceback \e[m(most recent call last):\ntest.rb:2:in `<main>': \e[1mtest (\e[4;1mRuntimeError\e[m\e[1m)\n\e[m"
$stderr = $stdout
p e.full_message # => "test.rb:2:in `<main>': test (RuntimeError)\n"
$stderr = STDERR
p e.full_message # => "\e[1mTrace......back \e[m(most recent call last):\ntest.rb:2:in `<main>': \e[1mtest (\e[4;1mRuntimeError\e[m\e[1m)\n\e[m"
end
//}
@see Exception.to_tty?... -
Gem
:: Specification # post _ install _ message -> String (9203.0) -
インストール完了後に表示するメッセージを返します。
インストール完了後に表示するメッセージを返します。 -
GetoptLong
# error _ message -> String | nil (9203.0) -
現在のエラーのエラーメッセージを返します。エラーが発生していな ければ、nil を返します。
現在のエラーのエラーメッセージを返します。エラーが発生していな
ければ、nil を返します。 -
Net
:: IMAP :: BodyTypeMessage # content _ id -> String | nil (9202.0) -
Content-ID の値を文字列で返します。
...Content-ID の値を文字列で返します。
@see 2045... -
Net
:: IMAP :: BodyTypeMessage # description -> String | nil (9202.0) -
Content-Description の値を文字列で返します。
...Content-Description の値を文字列で返します。
@see 2045... -
Exception
# to _ s -> String (6110.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}...