301件ヒット
[101-200件を表示]
(0.076秒)
別のキーワード
ライブラリ
- ビルトイン (98)
- e2mmap (36)
- logger (14)
-
minitest
/ unit (21) - mkmf (12)
-
net
/ imap (36) - optparse (48)
-
rubygems
/ specification (24)
クラス
- Exception (80)
- Fiber (6)
-
Gem
:: Specification (24) -
Logger
:: Application (2) -
Logger
:: LogDevice (12) -
Net
:: IMAP :: BodyTypeMessage (36) - OptionParser (24)
-
OptionParser
:: ParseError (24) -
RDoc
:: Options (12) - SignalException (12)
モジュール
- Exception2MessageMapper (36)
- Kernel (12)
-
MiniTest
:: Assertions (21)
キーワード
- == (12)
- Fail (6)
- Raise (6)
- 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)
-
def
_ exception (6) - description (12)
- disposition (12)
- exception (24)
-
exception
_ details (1) - extension (12)
- fail (6)
- flunk (1)
- inspect (12)
- log (2)
-
on
_ tail (12) - pass (1)
- raise (6)
- separator (12)
- signm (12)
- skip (1)
-
to
_ s (24) - warn (12)
- write (12)
検索結果
先頭5件
-
Exception
# full _ message(highlight: true , order: :bottom) -> String (9120.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 (9102.0) -
インストール完了後に表示するメッセージを返します。
インストール完了後に表示するメッセージを返します。 -
Net
:: IMAP :: BodyTypeMessage # description -> String | nil (9101.0) -
Content-Description の値を文字列で返します。
...Content-Description の値を文字列で返します。
@see 2045... -
Net
:: IMAP :: BodyTypeMessage # extension -> Array | nil (9101.0) -
メッセージの拡張データを返します。
メッセージの拡張データを返します。 -
Exception2MessageMapper
# Fail(exception _ class = nil , *rest) -> () (6119.0) -
登録されている情報を使用して、例外を発生させます。
...xception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。
例:
class Foo
extend Exception2MessageMapp......tion :NewExceptionClass, "message...%d, %d and %d" # =>
def foo
Raise NewExceptionClass, 1, 2, 3
end
end
Foo.new().foo() #=> in `Raise': message...1, 2 and 3 (Foo::NewExceptionClass)
# という例外が発生します。
Foo.Raise Foo::NewException......Class, 1, 3, 5 #=> in `Raise': message...1, 3 and 5 (Foo::NewExceptionClass)
# という例外が発生します。... -
Exception2MessageMapper
# Raise(exception _ class = nil , *rest) -> () (6119.0) -
登録されている情報を使用して、例外を発生させます。
...xception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。
例:
class Foo
extend Exception2MessageMapp......tion :NewExceptionClass, "message...%d, %d and %d" # =>
def foo
Raise NewExceptionClass, 1, 2, 3
end
end
Foo.new().foo() #=> in `Raise': message...1, 2 and 3 (Foo::NewExceptionClass)
# という例外が発生します。
Foo.Raise Foo::NewException......Class, 1, 3, 5 #=> in `Raise': message...1, 3 and 5 (Foo::NewExceptionClass)
# という例外が発生します。... -
Exception2MessageMapper
# fail(exception _ class = nil , *rest) -> () (6101.0) -
登録されている情報を使用して、例外を発生させます。
...れている情報を使用して、例外を発生させます。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場... -
Exception
# to _ s -> String (6008.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
OptionParser
:: ParseError # to _ s -> String (6002.0) -
標準エラーに出力するメッセージを返します。
標準エラーに出力するメッセージを返します。
@return 文字列を返します。 -
Exception2MessageMapper
# bind(cl) -> () (6001.0) -
@todo
@todo
@param cl xxx -
MiniTest
:: Assertions # assert _ includes(collection , object , message = nil) -> true (3208.0) -
与えられたコレクションにオブジェクトが含まれている場合、検査にパスしたことになります。
...れている場合、検査にパスしたことになります。
@param collection 任意のコレクションを指定します。
@param object 任意のオブジェクトを指定します。
@param message 検査に失敗した場合に表示するメッセージを指定します。......文字列か Proc を指定します。Proc である場合は Proc#call した
結果を使用します。
@raise MiniTest::Assertion 第一引数のオブジェクトが include? メソッドを持たない場合に発生します。
与えられたコ... -
MiniTest
:: Assertions # assert _ operator(operand1 , operator , operand2 , message = nil) -> true (3120.0) -
与えられたオブジェクトから作成する式を評価した結果が真を返す場合、検査にパスしたことになります。
...定します。
@param message 検査に失敗した場合に表示するメッセージを指定します。
文字列か Proc を指定します。Proc である場合は Proc#call した
結果を使用します。
@raise MiniTest::Assertion 与えられたオブ......ジェクトから作成する式を評価した結果が真でない場合に発生します。
例:
# 以下の二つは同じ
assert_operator('aaa', :==, 'aaa', 'message')
assert('aaa'.__send__(:==, 'aaa'), 'message')... -
RDoc
:: Options # warn(message) -> nil (3118.0) -
--verbose オプションを指定していた場合に message を 標準エラー出力 $stderr に出力します。
...--verbose オプションを指定していた場合に message を 標準エラー出力
$stderr に出力します。...