321件ヒット
[1-100件を表示]
(0.161秒)
ライブラリ
- ビルトイン (56)
- getoptlong (12)
- logger (12)
-
minitest
/ unit (1) -
net
/ http (24) -
net
/ imap (120) -
net
/ smtp (36) - optparse (24)
-
rubygems
/ specification (12) -
shell
/ system-command (12) -
syslog
/ logger (12)
クラス
- Exception (44)
-
Gem
:: Specification (12) - GetoptLong (12)
- Logger (12)
-
Net
:: HTTPResponse (24) -
Net
:: IMAP :: BodyTypeMessage (108) -
Net
:: IMAP :: Envelope (12) -
Net
:: SMTP (36) -
OptionParser
:: ParseError (24) -
Shell
:: SystemCommand (12) - SignalException (12)
-
Syslog
:: Logger :: Formatter (12)
モジュール
キーワード
- call (12)
-
content
_ id (12) - description (12)
- encoding (12)
-
exception
_ details (1) - formatter (12)
- inspect (12)
- language (12)
- md5 (12)
-
media
_ subtype (12) -
media
_ type (12) - msg (12)
- notify (12)
- param (12)
-
send
_ mail (12) - sendmail (12)
- signm (12)
- subtype (12)
-
to
_ s (24)
検索結果
先頭5件
-
Exception
# message -> String (21316.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
Net
:: HTTPResponse # message -> String (21310.0) -
HTTP サーバがリザルトコードに付加して返すメッセージです。 例えば 'Not Found' などです。
...HTTP サーバがリザルトコードに付加して返すメッセージです。
例えば 'Not Found' などです。
msg は obsolete です。使わないでください。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(U......RI.parse(uri))
response.message # => "OK"
//}... -
OptionParser
:: ParseError # message -> String (21304.0) -
標準エラーに出力するメッセージを返します。
...標準エラーに出力するメッセージを返します。
@return 文字列を返します。... -
Gem
:: Specification # post _ install _ message -> String (12303.0) -
インストール完了後に表示するメッセージを返します。
インストール完了後に表示するメッセージを返します。 -
Exception
# full _ message(highlight: true , order: :bottom) -> String (9321.0) -
例外の整形された文字列を返します。
...例外を標準エラー出力に出力するときと
同じ形式です。
そのため、メソッド呼び出し時に $stderr が変更されておらず、$stderr.tty? が真の場合は
エスケープシーケンスによる文字装飾がついています。
[注意] このメソッドは......highlight と order は 2.5.1 で追加されました。
@param highlight エスケープシーケンスによる文字装飾をつけるかどうかを指定します。
デフォルト値は Exception.to_tty? の返り値と同じです。
@param order :top か :bottom で指......ジの上(top)か下(bottom)かを指定します。
デフォルト値は Exception.to_tty? が真なら :bottom で偽なら :top です。
//emlist[例][ruby]{
begin
raise "test"
rescue => e
p e.full_message # => "\e[1mTraceback \e[m(most recent call last):\ntest.rb:2:in `<mai......じ形式です。
そのため、メソッド呼び出し時に $stderr が変更されておらず、$stderr.tty? が真の場合は
エスケープシーケンスによる文字装飾がついています。
@param highlight エスケープシーケンスによる文字装飾をつけるかど......Exception.to_tty? の返り値と同じです。
@param order :top か :bottom で指定する必要があります。
バックトレースの一番奥がエラーメッセージの上(top)か下(bottom)かを指定します。
デフォルト値は Exception.to_tty? が......ら :bottom で偽なら :top です。
//emlist[例][ruby]{
begin
raise "test"
rescue => 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 `<... -
Net
:: IMAP :: Envelope # message _ id -> String | nil (9319.0) -
message_id を文字列で返します。
...message_id を文字列で返します。
エンベロープに存在しないときは nil を返します。... -
GetoptLong
# error _ message -> String | nil (9303.0) -
現在のエラーのエラーメッセージを返します。エラーが発生していな ければ、nil を返します。
現在のエラーのエラーメッセージを返します。エラーが発生していな
ければ、nil を返します。 -
Exception
# to _ s -> String (9216.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
Net
:: IMAP :: BodyTypeMessage # media _ type -> String (9208.0) -
MIME のメディアタイプを返します。
...MIME のメディアタイプを返します。
これは "MESSAGE" を返します。
@see Net::IMAP::BodyTypeMessage#subtype...