832件ヒット
[101-200件を表示]
(0.120秒)
ライブラリ
- ビルトイン (102)
-
cgi
/ core (12) - e2mmap (6)
- getoptlong (12)
- logger (108)
-
minitest
/ unit (2) - mkmf (24)
-
net
/ imap (12) - openssl (84)
- optparse (192)
- pathname (22)
- pstore (72)
-
rdoc
/ rdoc (12) - rubygems (12)
-
rubygems
/ user _ interaction (24) - timeout (16)
-
webrick
/ httpresponse (12) - zlib (108)
クラス
- CGI (12)
- Exception (24)
- Fiber (18)
-
Gem
:: LoadError (12) -
Gem
:: StreamUI (12) - GetoptLong (12)
- Hash (36)
- Logger (108)
-
MiniTest
:: Unit (2) -
Net
:: IMAP :: ResponseError (12) -
OpenSSL
:: PKCS7 (60) -
OpenSSL
:: PKey :: EC :: Group (12) -
OpenSSL
:: X509 :: StoreContext (12) - OptionParser (144)
-
OptionParser
:: ParseError (48) - PStore (72)
- Pathname (22)
-
RDoc
:: RDoc (12) - Thread (24)
-
WEBrick
:: HTTPResponse (12) -
Zlib
:: GzipReader (72) -
Zlib
:: GzipWriter (36)
モジュール
- Exception2MessageMapper (6)
-
Gem
:: UserInteraction (12) - Kernel (40)
キーワード
- [] (12)
- []= (12)
- add (24)
-
add
_ certificate (12) -
alert
_ error (24) - certificates= (12)
- comment= (12)
- decrypt (12)
-
def
_ exception (6) - delete (12)
- document (12)
- each (12)
-
each
_ line (12) - error= (12)
-
error
_ string= (12) - errors= (1)
- exception (24)
- fetch (48)
- find (22)
- gets (12)
- header (12)
- log (24)
- mtime= (12)
- on (144)
-
orig
_ name= (12) -
pending
_ interrupt? (12) - puke (1)
- raise (30)
- read (12)
- readline (12)
- reason= (12)
- recover (12)
- response= (12)
- root? (12)
-
set
_ backtrace (12) -
set
_ error (24) -
set
_ generator (12) -
set
_ option (12) -
sev
_ threshold= (12) - timeout (16)
- transaction (12)
- ungetc (12)
- verify (12)
-
version
_ requirement= (12) - warn (24)
-
with
_ werror (24)
検索結果
先頭5件
- Kernel
# with _ werror(opt , opts = nil) {|opt| . . . } -> object - OptionParser
:: ParseError # set _ option(opt , eq) -> self - Exception
# exception(error _ message) -> Exception - Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class - OpenSSL
:: X509 :: StoreContext # error=(error)
-
Kernel
# with _ werror(opt , opts = nil) {|opt| . . . } -> object (12213.0) -
@todo 内部用?
...@todo 内部用?
???
@param opt ????
@param opts ????
@return ブロックを評価した結果を返します。... -
OptionParser
:: ParseError # set _ option(opt , eq) -> self (12113.0) -
エラーのあったオプションを指定します。
...理するエラーのあったオプションの一覧の先頭を
opt で置き換えます。そうでない場合は先頭に opt を追加します。
@param opt エラーのあったオプションを指定します。
@param eq self が管理するエラーのあったオプションの一......覧の先頭を置き換え
るかどうかを指定します。
@return self を返します。... -
Exception
# exception(error _ message) -> Exception (9336.0) -
引数を指定しない場合は self を返します。引数を指定した場合 自身のコピー を生成し Exception#message 属性を error_message にして返します。
...生成し Exception#message 属性を error_message にして返します。
Kernel.#raise は、実質的に、例外オブジェクトの exception
メソッドの呼び出しです。
@param error_message エラーメッセージを表す文字列を指定します。
//emlist[例][ruby]{
begi......n
# ... # 何か処理
rescue => e
raise e.exception("an error occurs during hogehoge process") # 詳しいエラーメッセージ
end
//}... -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (9319.0) -
exception_name という名前の例外クラスを定義します。
...exception_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定......します。
省略すると StandardError を使用します。... -
OpenSSL
:: X509 :: StoreContext # error=(error) (9245.0) -
エラーコードを設定します。
...エラーコードを設定します。
OpenSSL::X509::StoreContext#verify を呼びだし、
証明書チェインの各証明書を検証した
コールバック(OpenSSL::X509::Store#verify_callback=)が呼び出され、
StoreContext オブジェクトが渡されますが、このメソッド......SSL::X509::StoreContext#error_string
もその値に応じた文字列が返るようになります。
例:
require 'openssl'
store = OpenSSL::X509::Store.new
store.set_default_paths
cert = OpenSSL::X509::Certificate.new(...)
store.verify(cert, chain){|ok,ctx|
ctx.error = OpenSSL:......:X509::V_ERR_APPLICATION_VERIFICATION;
false} # => false
p store.error # => OpenSSL::X509::V_ERR_APPLICATION_VERIFICATION
p store.error_string # => "application verification failure"
@param error エラーコードの整数値
@see OpenSSL::X509::StoreContext#error... -
MiniTest
:: Unit # errors=(count) (9207.0) -
エラー数をセットします。
...エラー数をセットします。
@param count 件数を指定します。... -
Exception
# exception -> self (9136.0) -
引数を指定しない場合は self を返します。引数を指定した場合 自身のコピー を生成し Exception#message 属性を error_message にして返します。
...生成し Exception#message 属性を error_message にして返します。
Kernel.#raise は、実質的に、例外オブジェクトの exception
メソッドの呼び出しです。
@param error_message エラーメッセージを表す文字列を指定します。
//emlist[例][ruby]{
begi......n
# ... # 何か処理
rescue => e
raise e.exception("an error occurs during hogehoge process") # 詳しいエラーメッセージ
end
//}... -
Gem
:: LoadError # version _ requirement=(version _ requirement) (9107.0) -
ロードに失敗した Gem の必要条件をセットします。
...ロードに失敗した Gem の必要条件をセットします。
@param version_requirement Gem::Requirement のインスタンスをセットします。
@see Gem::Requirement, Gem::Dependency#version_requirements... -
OptionParser
:: ParseError # set _ backtrace(array) -> [String] (9107.0) -
自身に array で指定したバックトレースを設定します。
...自身に array で指定したバックトレースを設定します。
@param array バックトレースを文字列の配列で指定します。
@return array を返します。... -
Kernel
# timeout(sec , exception _ class = nil) {|i| . . . . } -> object (6235.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
...の期限付きで実行します。
ブロックの実行時間が制限を過ぎたときは例外
Timeout::Error が発生します。
exception_class を指定した場合には Timeout::Error の代わりに
その例外が発生します。
ブロックパラメータ i は sec がはいり......しで
ブロックを実行します。
@param sec タイムアウトする時間を秒数で指定します.
@param exception_class タイムアウトした時、発生させる例外を指定します.
=== 注意
timeout による割り込みは Thread によって実現されています。C......レベルで実装され、Ruby のスレッドが割り込めない処理に対して
timeout は無力です。
そのような
ものは実用レベルでは少ないのですが、例をあげると Socket などは
DNSの名前解決に時間がかかった場合割り込めません
(resolv-r... -
PStore
# fetch(name , default = PStore :: Error) -> object (6226.0) -
ルートnameに対応する値を得ます。
...fault が与えられていればその値を返し、
与えられていなければ例外 PStore::Error が発生します。
@param name 探索するルート。
@param default name に対応するルートが登録されていない場合に返す値を指定する。
@raise PStore::Error nam......default が与えられていない場合に発生します。
また、トランザクション外でこのメソッドが呼び出された場合に発生します。
例:
require 'pstore'
db = PStore.new("/tmp/foo")
db.transaction do
p db.roots # =>......]
ary = db["root"] = [1,2,3,4]
ary[0] = [1,1.5]
end
db.transaction(true) do |pstore|
pstore.fetch("root") # => [[1, 1.5], 2, 3, 4]
pstore.fetch("root", 'aaa') # => [[1, 1.5], 2, 3, 4]
pstore.fetch("not_root") # => 例外発生
end
@see Hash#fetch, PStore#[]...