1762件ヒット
[101-200件を表示]
(0.123秒)
ライブラリ
- ビルトイン (333)
-
cgi
/ core (12) - drb (12)
- e2mmap (6)
- getoptlong (48)
- logger (96)
-
minitest
/ unit (1) - mkmf (24)
-
net
/ imap (24) - openssl (408)
- optparse (252)
- pathname (22)
- pstore (108)
- psych (72)
-
racc
/ parser (24) - ripper (12)
- rss (12)
-
rubygems
/ command (12) -
rubygems
/ installer (12) - strscan (12)
- timeout (8)
-
webrick
/ httpresponse (12) - zlib (240)
クラス
- CGI (12)
-
DRb
:: DRbUnknown (12) -
Encoding
:: Converter (24) -
Encoding
:: InvalidByteSequenceError (24) - Exception (24)
- Fiber (18)
- FrozenError (6)
-
Gem
:: Command (12) -
Gem
:: Installer (12) - GetoptLong (48)
- Hash (36)
- KeyError (16)
- LoadError (12)
- LocalJumpError (24)
- Logger (96)
-
MiniTest
:: Unit (1) - NameError (44)
-
Net
:: IMAP :: ResponseError (24) - NoMethodError (21)
-
OpenSSL
:: ASN1 :: ObjectId (12) -
OpenSSL
:: PKCS12 (12) -
OpenSSL
:: PKCS7 (96) -
OpenSSL
:: PKey :: EC :: Group (96) -
OpenSSL
:: PKey :: EC :: Point (96) -
OpenSSL
:: SSL :: SSLSocket (12) -
OpenSSL
:: X509 :: Store (24) -
OpenSSL
:: X509 :: StoreContext (60) - OptionParser (144)
-
OptionParser
:: ParseError (108) - PStore (108)
- Pathname (22)
-
Psych
:: SyntaxError (72) -
RSS
:: NSError (12) -
Racc
:: Parser (24) - Ripper (12)
- StopIteration (12)
- StringScanner (12)
- SyntaxError (3)
- SystemCallError (12)
- Thread (24)
- UncaughtThrowError (33)
-
WEBrick
:: HTTPResponse (12) -
Zlib
:: GzipFile :: Error (24) -
Zlib
:: GzipReader (180) -
Zlib
:: GzipWriter (36)
モジュール
- Exception2MessageMapper (6)
- Kernel (32)
キーワード
- == (12)
- [] (12)
- []= (12)
- abort (12)
- add (24)
-
add
_ certificate (12) -
add
_ crl (12) - args (24)
- certificates= (12)
- cofactor (12)
- column (12)
- comment= (12)
- commit (12)
-
compile
_ error (12) - context (12)
- crls= (12)
- decrypt (12)
-
def
_ exception (6) - delete (12)
- each (24)
-
each
_ byte (24) -
each
_ line (24) - eql? (12)
- errno (12)
- error= (12)
- error? (12)
-
error
_ bytes (12) -
error
_ depth (12) -
error
_ string (36) -
error
_ string= (12) - exception (36)
-
exit
_ value (12) - fetch (48)
- file (12)
- find (22)
- getc (12)
- gets (12)
- header (12)
-
incomplete
_ input? (12) - infinity? (12)
- input (12)
- inspect (24)
- install (12)
- invert! (12)
- key (8)
-
last
_ error (12) - line (12)
- lineno (12)
- lineno= (12)
-
local
_ variables (10) - log (24)
-
make
_ affine! (12) - mtime= (12)
- name (12)
- offset (12)
- oid (12)
- on (144)
-
on
_ curve? (12) -
on
_ error (12) - order (12)
-
orig
_ name= (12) - path (15)
-
pending
_ interrupt? (12) -
point
_ conversion _ form (12) - prefix (12)
-
primitive
_ errinfo (12) -
private
_ call? (9) - problem (12)
- puke (1)
- raise (30)
- read (12)
- readchar (12)
- readline (12)
- readlines (12)
- reason (24)
- reason= (12)
- receiver (24)
- recover (12)
- response (12)
- response= (12)
- result (12)
- root? (12)
- roots (12)
- seed= (12)
-
set
_ backtrace (12) -
set
_ error (24) -
set
_ generator (12) -
set
_ option (12) -
set
_ to _ infinity! (12) -
show
_ lookup _ failure (12) - tag (11)
- timeout (8)
-
to
_ bn (12) -
to
_ der (24) -
to
_ pem (12) -
to
_ s (35) -
to
_ text (12) - transaction (12)
- ungetc (12)
- unscan (12)
- value (11)
- verify (24)
-
verify
_ result (12) - warn (24)
-
with
_ werror (24) - yyerror (12)
検索結果
先頭5件
- Exception
# exception(error _ message) -> Exception - Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class - Net
:: IMAP :: ResponseError # response -> Net :: IMAP :: TaggedResponse | Net :: IMAP :: UntaggedResponse - OpenSSL
:: X509 :: StoreContext # error=(error) - GetoptLong
# set _ error(type , message) -> ()
-
Exception
# exception(error _ message) -> Exception (9330.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
//}... -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (9301.0) -
exception_name という名前の例外クラスを定義します。
...exception_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定......します。
省略すると StandardError を使用します。... -
Net
:: IMAP :: ResponseError # response -> Net :: IMAP :: TaggedResponse | Net :: IMAP :: UntaggedResponse (9301.0) -
エラーとなったレスポンスを表すオブジェクトを返します。
エラーとなったレスポンスを表すオブジェクトを返します。 -
OpenSSL
:: X509 :: StoreContext # error=(error) (9251.0) -
エラーコードを設定します。
...エラーコードを設定します。
OpenSSL::X509::StoreContext#verify を呼びだし、
証明書チェインの各証明書を検証した
コールバック(OpenSSL::X509::Store#verify_callback=)が呼び出され、
StoreContext オブジェクトが渡されますが、このメソッド......OpenSSL::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 = Open......SSL::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... -
GetoptLong
# set _ error(type , message) -> () (9202.0) -
引数で与えられた例外を発生させます。
...数で与えられた例外を発生させます。
その際、静粛モードでなければ標準エラー出力に与えられたメッセージを出力します。
@param type 例外クラスを指定します。
@param message 例外にセットするメッセージを指定します。... -
Exception
# exception -> self (9130.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
//}... -
Encoding
:: InvalidByteSequenceError # incomplete _ input? -> bool (9125.0) -
エラー発生時に入力文字列が不足している場合に真を返します。
...ist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1z")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "z" on EUC-JP>
p $!.incomplete_input? #=> false
end
begin
ec.convert("abc\xA1")......ec.finish
rescue Encoding::InvalidByteSequenceError
p $! #=> #<Encoding::InvalidByteSequenceError: incomplete "\xA1" on EUC-JP>
p $!.incomplete_input? #=> true
end
//}... -
Encoding
:: InvalidByteSequenceError # error _ bytes -> String (9114.0) -
エラー発生時に捨てられたバイト列を返します。
...onverter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1\xFFdef")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "\xFF" on EUC-JP>
puts $!.error_bytes.dump #=> "\xA1"
puts $!.readagain_bytes.dump #=> "\xFF"
en......d
//}
@see Encoding::InvalidByteSequenceError#readagain_bytes... -
OpenSSL
:: PKCS7 # error _ string -> String | nil (9108.0) -
検証エラーの理由を表す文字列を返します。
...検証エラーの理由を表す文字列を返します。
OpenSSL::PKCS7#verify で検証を
した場合のみ更新されます。
OpenSSL::PKCS7#verify で検証をする前は nil を返します。
検証に成功した場合は nil を返します。
@see OpenSSL::PKCS7#error_string=... -
OpenSSL
:: PKCS7 # error _ string=(str) (9108.0) -
検証エラーの理由を表す文字列を設定します。
...検証エラーの理由を表す文字列を設定します。
@param str 設定するエラー文字列
@see OpenSSL::PKCS7#error_string...