307件ヒット
[1-100件を表示]
(0.083秒)
ライブラリ
クラス
- Exception (80)
- Fiber (18)
- KeyError (16)
-
Net
:: HTTPResponse (12) -
Net
:: IMAP (12) -
Net
:: SMTP (36) - OptionParser (24)
- SignalException (12)
- SystemCallError (12)
- Thread (12)
-
Thread
:: SizedQueue (36) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (12)
モジュール
検索結果
先頭5件
- Exception
# message -> String - Net
:: SMTP # send _ message(mailsrc , from _ addr , *to _ addrs) -> () - MiniTest
:: Assertions # assert _ send(array , message = nil) -> true - Net
:: IMAP # append(mailbox , message , flags = nil , date _ time = nil) -> Net :: IMAP :: TaggedResponse - Exception
# full _ message(highlight: true , order: :bottom) -> String
-
Exception
# message -> String (18114.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
Net
:: SMTP # send _ message(mailsrc , from _ addr , *to _ addrs) -> () (9208.0) -
メールを送信します。
...。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}
sendmail は obsolete です。
@param mailsrc メールの内容
@param from_addr... -
MiniTest
:: Assertions # assert _ send(array , message = nil) -> true (6208.0) -
引数から、式を取り出して評価した結果が真の場合、検査にパスしたことになります。
...ト、第二要素にメソッド名、
第三要素にパラメータをそれぞれ指定した配列を指定します。
@param message 検査に失敗した場合に表示するメッセージを指定します。
文字列か Proc を指定します。Proc であ......る場合は Proc#call した
結果を使用します。
@raise MiniTest::Assertion 取り出した式が偽を返す場合に発生します。
例:
assert_send([%w[foo bar baz], :include?, 'baz'])... -
Net
:: IMAP # append(mailbox , message , flags = nil , date _ time = nil) -> Net :: IMAP :: TaggedResponse (6208.0) -
APPEND コマンドを送ってメッセージをメールボックスの末尾に追加します。
...APPEND コマンドを送ってメッセージをメールボックスの末尾に追加します。
例:
imap.append("inbox", <<EOF.gsub(/\n/, "\r\n"), [:Seen], Time.now)
Subject: hello
From: someone@example.com
To: somebody@example.com
hello world
EOF
@param mailbox メッセー......ジを追加するメールボックス名(文字列)
@param message メッセージ文字列
@param flags メッセージに付加するフラグ(Symbol の配列)
@param date_time メッセージの時刻(Time オブジェクト)。省略時は現在時刻が使われる
@raise Net::IMAP::NoRespon... -
Exception
# full _ message(highlight: true , order: :bottom) -> String (6126.0) -
例外の整形された文字列を返します。
...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?... -
Net
:: SMTP # send _ mail(mailsrc , from _ addr , *to _ addrs) -> () (6108.0) -
メールを送信します。
...。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}
sendmail は obsolete です。
@param mailsrc メールの内容
@param from_addr... -
Net
:: SMTP # sendmail(mailsrc , from _ addr , *to _ addrs) -> () (6108.0) -
メールを送信します。
...。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}
sendmail は obsolete です。
@param mailsrc メールの内容
@param from_addr... -
Exception2MessageMapper
# Fail(exception _ class = nil , *rest) -> () (3031.0) -
登録されている情報を使用して、例外を発生させます。
...値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。
例:
class Foo
extend Exception2MessageMapper
p def_exception :NewExceptionClass, "message...%d, %d and %d" # =>......Raise NewExceptionClass, 1, 2, 3
end
end
Foo.new().foo() #=> in `Raise': message...1, 2 and 3 (Foo::NewExceptionClass)
# という例外が発生します。
Foo.Raise Foo::NewExceptionClass, 1, 3, 5 #=> in `Raise': message...1, 3 and 5 (Foo::NewExceptionClas... -
Exception2MessageMapper
# Raise(exception _ class = nil , *rest) -> () (3031.0) -
登録されている情報を使用して、例外を発生させます。
...値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。
例:
class Foo
extend Exception2MessageMapper
p def_exception :NewExceptionClass, "message...%d, %d and %d" # =>......Raise NewExceptionClass, 1, 2, 3
end
end
Foo.new().foo() #=> in `Raise': message...1, 2 and 3 (Foo::NewExceptionClass)
# という例外が発生します。
Foo.Raise Foo::NewExceptionClass, 1, 3, 5 #=> in `Raise': message...1, 3 and 5 (Foo::NewExceptionClas... -
Exception
# to _ s -> String (3014.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
Exception
# exception(error _ message) -> Exception (146.0) -
引数を指定しない場合は self を返します。引数を指定した場合 自身のコピー を生成し Exception#message 属性を error_message にして返します。
...した場合 自身のコピー
を生成し Exception#message 属性を error_message にして返します。
Kernel.#raise は、実質的に、例外オブジェクトの exception
メソッドの呼び出しです。
@param error_message エラーメッセージを表す文字列を指定し......ます。
//emlist[例][ruby]{
begin
# ... # 何か処理
rescue => e
raise e.exception("an error occurs during hogehoge process") # 詳しいエラーメッセージ
end
//}...