ライブラリ
- ビルトイン (172)
- e2mmap (96)
- etc (156)
- getoptlong (24)
- logger (2)
-
minitest
/ unit (21) -
net
/ http (36) -
net
/ imap (94) -
net
/ smtp (48) - optparse (48)
-
rubygems
/ specification (24) - socket (84)
- thread (6)
- timeout (18)
- win32ole (48)
クラス
- Exception (112)
- Fiber (6)
-
Gem
:: Specification (24) - GetoptLong (24)
-
Logger
:: Application (2) -
Net
:: HTTPResponse (36) -
Net
:: IMAP (46) -
Net
:: IMAP :: BodyTypeMessage (48) -
Net
:: SMTP (48) - OptionParser (24)
-
OptionParser
:: ParseError (24) -
RDoc
:: Options (12) - SignalException (12)
- Socket (12)
-
Thread
:: SizedQueue (36) -
WIN32OLE
_ EVENT (24) -
WIN32OLE
_ TYPE (12)
モジュール
- Etc (156)
- Exception2MessageMapper (78)
-
MiniTest
:: Assertions (21) -
Socket
:: Constants (72) - Timeout (18)
キーワード
- == (12)
- E2MM (6)
- ErrNotRegisteredException (6)
- Exception2MessageMapper (6)
- Fail (12)
-
IPPROTO
_ ICMP (12) -
IPPROTO
_ ICMPV6 (12) -
IP
_ RECVERR (12) -
MSG
_ DONTWAIT (24) -
MSG
_ ERRQUEUE (12) -
MSG
_ PEEK (12) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) - Raise (12)
-
SC
_ 2 _ VERSION (12) -
SC
_ ASYNCHRONOUS _ IO (12) -
SC
_ CLOCK _ SELECTION (12) -
SC
_ JOB _ CONTROL (12) -
SC
_ MEMORY _ PROTECTION (12) -
SC
_ MONOTONIC _ CLOCK (12) -
SC
_ NPROCESSORS _ CONF (12) -
SC
_ NPROCESSORS _ ONLN (12) -
SC
_ SYNCHRONIZED _ IO (12) -
SC
_ THREAD _ DESTRUCTOR _ ITERATIONS (12) -
SC
_ THREAD _ SAFE _ FUNCTIONS (12) -
SC
_ VERSION (12) -
SC
_ XOPEN _ VERSION (12) - SignalException (12)
-
WIN32OLE
_ EVENT (12) - append (12)
- 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 (12) - copy (12)
- data (24)
-
def
_ exception (12) -
default
_ event _ sources (12) - deq (12)
- description (12)
- disposition (12)
- exception (36)
-
exception
_ details (1) -
extend
_ object (6) - extension (12)
- fail (6)
- flunk (1)
- greeting (12)
- handler= (12)
- inspect (12)
- log (2)
- mailfrom (12)
- move (10)
- msg (12)
- new (12)
-
on
_ tail (12) - pass (1)
- pop (12)
- raise (6)
- rcptto (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) - separator (12)
-
set
_ error (12) - shift (12)
- signm (12)
- skip (1)
- timeout (18)
-
to
_ s (24) -
to
_ tty? (8) - value (12)
- warn (12)
- 制御構造 (12)
検索結果
先頭5件
-
Exception2MessageMapper
. message(klass , exp) -> String | nil (24102.0) -
@todo
@todo
@param klass
@param exp -
MiniTest
:: Assertions # message(message) { . . . } -> Proc (21208.0) -
与えられたブロックを評価した結果と与えられたメッセージを連結して返します。
...与えられたブロックを評価した結果と与えられたメッセージを連結して返します。
@param message メッセージを指定します。... -
Exception
# message -> String (21107.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
Net
:: HTTPResponse # message -> String (21107.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 (21101.0) -
標準エラーに出力するメッセージを返します。
標準エラーに出力するメッセージを返します。
@return 文字列を返します。 -
Exception2MessageMapper
# def _ e2message(exception _ class , message _ format) -> Class (12324.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 (12324.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 (12307.0) -
exception_name という名前の例外クラスを定義します。
...exception_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定... -
Exception2MessageMapper
. def _ exception(klass , exception _ name , message _ format , superklass = StandardError) -> Class (12307.0) -
exception_name という名前の例外クラスを定義します。
...exception_name という名前の例外クラスを定義します。
@param klass 一階層上となるクラス名を指定します。
@param exception_name 例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマットを指定しま... -
Exception2MessageMapper
. e2mm _ message(klass , exp) -> String | nil (12102.0) -
@todo
@todo
@param klass
@param exp -
Exception2MessageMapper (12000.0)
-
例外クラスに特定のエラーメッセージ用フォーマットを関連づけるためのモジュールです。
例外クラスに特定のエラーメッセージ用フォーマットを関連づけるためのモジュールです。 -
Exception2MessageMapper
:: ErrNotRegisteredException (12000.0) -
登録されていない例外が Exception2MessageMapper#Raise で使用された場合に発生します。
...登録されていない例外が Exception2MessageMapper#Raise で使用された場合に発生します。... -
Exception
. exception(error _ message = nil) -> Exception (9362.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 (9339.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
//}...