ライブラリ
- ビルトイン (145)
- e2mmap (78)
- etc (143)
- getoptlong (22)
- logger (2)
-
minitest
/ unit (19) -
net
/ http (33) -
net
/ imap (86) -
net
/ smtp (44) - optparse (44)
-
rubygems
/ specification (11) - socket (77)
- thread (6)
- timeout (16)
- win32ole (44)
クラス
- Exception (102)
- Fiber (5)
-
Gem
:: Specification (11) - GetoptLong (22)
-
Logger
:: Application (2) -
Net
:: HTTPResponse (33) -
Net
:: IMAP (42) -
Net
:: IMAP :: BodyTypeMessage (44) -
Net
:: SMTP (44) - OptionParser (22)
-
OptionParser
:: ParseError (22) -
RDoc
:: Options (11) - SignalException (11)
- Socket (11)
-
Thread
:: SizedQueue (33) -
WIN32OLE
_ EVENT (22) -
WIN32OLE
_ TYPE (11)
モジュール
- Etc (143)
- Exception2MessageMapper (78)
-
MiniTest
:: Assertions (19) -
Socket
:: Constants (66) - Timeout (16)
キーワード
- == (11)
- Fail (12)
-
IPPROTO
_ ICMP (11) -
IPPROTO
_ ICMPV6 (11) -
IP
_ RECVERR (11) -
MSG
_ DONTWAIT (22) -
MSG
_ ERRQUEUE (11) -
MSG
_ PEEK (11) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (4) - Raise (12)
-
SC
_ 2 _ VERSION (11) -
SC
_ ASYNCHRONOUS _ IO (11) -
SC
_ CLOCK _ SELECTION (11) -
SC
_ JOB _ CONTROL (11) -
SC
_ MEMORY _ PROTECTION (11) -
SC
_ MONOTONIC _ CLOCK (11) -
SC
_ NPROCESSORS _ CONF (11) -
SC
_ NPROCESSORS _ ONLN (11) -
SC
_ SYNCHRONIZED _ IO (11) -
SC
_ THREAD _ DESTRUCTOR _ ITERATIONS (11) -
SC
_ THREAD _ SAFE _ FUNCTIONS (11) -
SC
_ VERSION (11) -
SC
_ XOPEN _ VERSION (11) -
WIN32OLE
_ EVENT (11) - append (11)
- assert (1)
-
assert
_ block (1) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ match (1) -
assert
_ nil (1) -
assert
_ operator (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
assert
_ send (1) -
assert
_ throws (1) - bind (6)
-
content
_ id (11) - copy (11)
- data (22)
-
def
_ exception (12) -
default
_ event _ sources (11) - deq (11)
- description (11)
- disposition (11)
- exception (33)
-
exception
_ details (1) -
extend
_ object (6) - extension (11)
- fail (6)
- greeting (11)
- handler= (11)
- inspect (11)
- log (2)
- mailfrom (11)
- move (9)
- msg (11)
- new (11)
-
on
_ tail (11) - pass (1)
- pop (11)
- raise (5)
- rcptto (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) - separator (11)
-
set
_ error (11) - shift (11)
- signm (11)
- timeout (16)
-
to
_ s (22) -
to
_ tty? (7) - value (11)
- warn (11)
- 制御構造 (11)
検索結果
先頭5件
-
Exception2MessageMapper
. message(klass , exp) -> String | nil (24202.0) -
@todo
@todo
@param klass
@param exp -
MiniTest
:: Assertions # message(message) { . . . } -> Proc (21308.0) -
与えられたブロックを評価した結果と与えられたメッセージを連結して返します。
...与えられたブロックを評価した結果と与えられたメッセージを連結して返します。
@param message メッセージを指定します。... -
Exception
# message -> String (21207.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
Net
:: HTTPResponse # message -> String (21207.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 (21201.0) -
標準エラーに出力するメッセージを返します。
標準エラーに出力するメッセージを返します。
@return 文字列を返します。 -
Exception2MessageMapper
# def _ e2message(exception _ class , message _ format) -> Class (12424.0) -
すでに存在する例外クラス exception_class に、 エラーメッセージ用フォーマット message_format を関連づけます。
...存在する例外クラス exception_class に、
エラーメッセージ用フォーマット message_format を関連づけます。
このフォーマットは Exception2MessageMapper#Raise,
Exception2MessageMapper#Fail で使用します。
@param exception_class メッセージを登録す......る例外クラスを指定します。
@param message_format メッセージのフォーマットを指定します。
Kernel.#sprintf のフォーマット文字列と同じ形式を使用できます。
@return exception_class を返します。... -
Exception2MessageMapper
. def _ e2message(klass , exception _ class , message _ format) -> Class (12424.0) -
すでに存在する例外クラス exception_class に、 エラーメッセージ用フォーマット message_format を関連づけます。
...ス exception_class に、
エラーメッセージ用フォーマット message_format を関連づけます。
@param klass 一階層上となるクラス名を指定します。
@param exception_class メッセージを登録する例外クラスを指定します。
@param message_format メ......ッセージのフォーマットを指定します。
Kernel.#sprintf のフォーマット文字列と同じ形式を使用できます。
@return exception_class を返します。... -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (12407.0) -
exception_name という名前の例外クラスを定義します。
...exception_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定... -
Exception2MessageMapper
. def _ exception(klass , exception _ name , message _ format , superklass = StandardError) -> Class (12407.0) -
exception_name という名前の例外クラスを定義します。
...exception_name という名前の例外クラスを定義します。
@param klass 一階層上となるクラス名を指定します。
@param exception_name 例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマットを指定しま... -
Exception2MessageMapper
. e2mm _ message(klass , exp) -> String | nil (12202.0) -
@todo
@todo
@param klass
@param exp -
Exception
. exception(error _ message = nil) -> Exception (9462.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 = Exception.exception("some message")
p e # => #<Exception: some message>
p e.message # => "some message"
//}... -
Exception
# exception(error _ message) -> Exception (9439.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
//}... -
Net
:: IMAP :: BodyTypeMessage # disposition -> Net :: IMAP :: ContentDisposition | nil (9416.0) -
Content-Dispotition の値を返します。
...Content-Dispotition の値を返します。
Net::IMAP::ContentDisposition オブジェクトを返します。
@see 1806, 2183...