種類
ライブラリ
- English (12)
- ビルトイン (479)
- bigdecimal (100)
- drb (12)
- e2mmap (96)
- irb (12)
-
json
/ add / exception (24) - matrix (36)
-
minitest
/ unit (4) -
net
/ http (43) - psych (12)
- rexml (72)
-
rubygems
/ exceptions (108) -
rubygems
/ security (12) -
rubygems
/ spec _ fetcher (12) - stringio (12)
- timeout (29)
-
webrick
/ httpauth / authenticator (24)
クラス
-
ARGF
. class (10) - BigDecimal (86)
-
DRb
:: DRbUnknown (12) -
Encoding
:: Converter (12) - Exception (184)
- Fiber (6)
-
Gem
:: SpecFetcher (12) - Hash (8)
- IO (36)
-
MiniTest
:: Unit (2) -
MiniTest
:: Unit :: TestCase (1) -
REXML
:: ParseException (48) - SignalException (60)
- StringIO (12)
- Thread (84)
- TracePoint (12)
モジュール
- Exception2MessageMapper (78)
- IRB (12)
- Kernel (93)
-
MiniTest
:: Assertions (1) -
Net
:: HTTPExceptions (12) - Timeout (21)
-
WEBrick
:: HTTPAuth :: Authenticator (12) -
WEBrick
:: HTTPAuth :: ProxyAuthenticator (12)
オブジェクト
- ENV (8)
キーワード
-
$ ! (12) -
$ ERROR _ INFO (12) - == (12)
- AuthException (24)
- BigDecimal (14)
- Complex (14)
- DependencyRemovalException (12)
- E2MM (6)
-
EXCEPTION
_ ALL (12) -
EXCEPTION
_ INFINITY (12) -
EXCEPTION
_ NaN (12) -
EXCEPTION
_ OVERFLOW (12) -
EXCEPTION
_ UNDERFLOW (12) -
EXCEPTION
_ ZERODIVIDE (12) - EndOfYAMLException (12)
- ErrDimensionMismatch (12)
- ErrNotRegisteredException (6)
- ErrNotRegular (12)
- ErrOperationNotDefined (12)
- Exception (48)
- Exception2MessageMapper (6)
- Fail (12)
- Float (7)
- FormatException (12)
- GemNotFoundException (12)
- GemNotInHomeException (12)
- HTTPClientException (7)
- HTTPExceptions (12)
- HTTPServerException (12)
- Integer (7)
- InvalidSpecificationException (12)
-
NEWS for Ruby 3
. 0 . 0 (5) -
PASSTHROUGH
_ EXCEPTIONS (1) - ParseException (12)
- Raise (12)
- Rational (7)
- RemoteSourceException (12)
- SignalException (12)
- SystemExitException (12)
- UndefinedNamespaceException (12)
-
abort
_ on _ exception (24) -
abort
_ on _ exception= (24) - backtrace (12)
-
backtrace
_ locations (12) - bind (6)
- cause (12)
- context (12)
-
def
_ exception (12) - exception (48)
-
exception
_ details (1) -
extend
_ object (6) - fail (6)
- inspect (12)
-
irb
_ abort (12) -
json
/ add / exception (12) -
json
_ create (12) -
last
_ error (12) - line (12)
- location (1)
- new (50)
- position (12)
- puke (1)
- raise (6)
-
raised
_ exception (12) -
rb
_ thread _ select (1) -
read
_ nonblock (34) -
report
_ on _ exception (18) -
report
_ on _ exception= (18) - response (12)
-
rubygems
/ exceptions (12) -
save
_ exception _ mode (12) - select (24)
-
set
_ backtrace (12) - signm (12)
- signo (12)
- slice (8)
- timeout (29)
-
to
_ json (12) -
to
_ s (24) -
to
_ tty? (8) -
warn
_ legacy (12) -
write
_ nonblock (12)
検索結果
先頭5件
-
ENV
. except(*keys) -> Hash (18113.0) -
引数で指定された以外のキーとその値だけを含む Hash を返します。
...引数で指定された以外のキーとその値だけを含む Hash を返します。
//emlist[][ruby]{
ENV #=> {"LANG"=>"en_US.UTF-8", "TERM"=>"xterm-256color", "HOME"=>"/Users/rhc"}
ENV.except("TERM","HOME") #=> {"LANG"=>"en_US.UTF-8"}
//}
@see Hash#except, ENV.slice... -
Hash
# except(*keys) -> Hash (18113.0) -
引数で指定された以外のキーとその値だけを含む Hash を返します。
...引数で指定された以外のキーとその値だけを含む Hash を返します。
引数に指定されていて Hash に存在しないキーは無視されます。
//emlist[][ruby]{
h = { a: 100, b: 200, c: 300 }
h.except(:a) # => {:b=>200, :c=>300}
//}
@see Hash#slice, ENV.except... -
Exception
# exception(error _ message) -> Exception (9200.0) -
引数を指定しない場合は self を返します。引数を指定した場合 自身のコピー を生成し Exception#message 属性を error_message にして返します。
...elf を返します。引数を指定した場合 自身のコピー
を生成し 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
//}... -
Exception
. exception(error _ message = nil) -> Exception (9200.0) -
例外オブジェクトを生成して返します。
...属性 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 me......ssage")
p e # => #<Exception: some message>
p e.message # => "some message"
//}... -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (9200.0) -
exception_name という名前の例外クラスを定義します。
...
exception_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定... -
Exception2MessageMapper
. def _ exception(klass , exception _ name , message _ format , superklass = StandardError) -> Class (9200.0) -
exception_name という名前の例外クラスを定義します。
...
exception_name という名前の例外クラスを定義します。
@param klass 一階層上となるクラス名を指定します。
@param exception_name 例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマットを指定しま... -
Exception
# exception -> self (9100.0) -
引数を指定しない場合は self を返します。引数を指定した場合 自身のコピー を生成し Exception#message 属性を error_message にして返します。
...elf を返します。引数を指定した場合 自身のコピー
を生成し 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
:: ErrNotRegisteredException (9000.0) -
登録されていない例外が Exception2MessageMapper#Raise で使用された場合に発生します。
...登録されていない例外が Exception2MessageMapper#Raise で使用された場合に発生します。... -
MiniTest
:: Assertions # exception _ details(exception , message) -> String (6200.0) -
与えられた例外の詳細を文字列として返します。
...与えられた例外の詳細を文字列として返します。
@param exception 例外を指定します。
@param message メッセージを指定します。... -
TracePoint
# raised _ exception -> Exception (6200.0) -
発生した例外を返します。
...eError :raise イベントのためのイベントフックの外側で実行し
た場合に発生します。
//emlist[例][ruby]{
trace = TracePoint.new(:raise) do |tp|
tp.raised_exception # => #<ZeroDivisionError: divided by 0>
end
trace.enable
begin
0/0
rescue
end
//}... -
BigDecimal
# save _ exception _ mode { . . . } -> object (6100.0) -
例外処理に関する BigDecimal.mode の設定を保存してブロックを評価し ます。ブロック中で変更した設定はブロックの評価後に復元されます。
例外処理に関する BigDecimal.mode の設定を保存してブロックを評価し
ます。ブロック中で変更した設定はブロックの評価後に復元されます。
ブロックの評価結果を返します。 -
BigDecimal
:: EXCEPTION _ ALL -> Integer (6100.0) -
BigDecimal の計算において例外を発生させるかどうかを設定、確認する 際の値を返します。
...する
際の値を返します。
以下の例外全てが対象です。
* BigDecimal::EXCEPTION_INFINITY
* BigDecimal::EXCEPTION_NaN
* BigDecimal::EXCEPTION_OVERFLOW
* BigDecimal::EXCEPTION_UNDERFLOW
* BigDecimal::EXCEPTION_ZERODIVIDE
BigDecimal.mode の第 1 引数に指定します。... -
BigDecimal
:: EXCEPTION _ INFINITY -> Integer (6100.0) -
BigDecimal の計算結果が無限大になった場合に例外を発生させるかどう かを設定、確認する際の値を返します。
BigDecimal の計算結果が無限大になった場合に例外を発生させるかどう
かを設定、確認する際の値を返します。
BigDecimal.mode の第 1 引数に指定します。