登録されているすべての例外タイプのリストを返す.
ExceptionTypes[tagspec]
指定された tagspec のタイプのサブタイプである,登録されているすべての例外タイプのリストを返す.
ExceptionTypes
登録されているすべての例外タイプのリストを返す.
ExceptionTypes[tagspec]
指定された tagspec のタイプのサブタイプである,登録されているすべての例外タイプのリストを返す.
詳細
- ExceptionTypes[All]はExceptionTypes[]に等しい.
- 指定 tagspec は以下のいずれかでよい.
-
tag 単一の有効な例外タイプ(記号または文字列) {tag1,tag2,…} 有効な例外タイプのリスト - tagspec における例外の親タイプ自体が登録されている必要はない.
- tagspec における套路k酢荒れた例外タイプは結果に含まれる.
例題
例 (2)
ExceptionTypes[]次は,単一の例外タイプ"GeneralError"の3つのサブタイプを登録する:
RegisterExceptionType[ArgumentError, "GeneralError"]
RegisterExceptionType[IOError, "GeneralError"]
RegisterExceptionType[ArgumentTypeError, ArgumentError]新たに登録されたタイプが登録項目に含まれているかどうかチェックする:
ExceptionTypes[]ArgumentErrorの(それ自身を含む)サブタイプである登録されたタイプを取得する:
ExceptionTypes[ArgumentError]Unprotect[ArgumentError, IOError, ArgumentTypeError]
DeleteObject /@ {ArgumentTypeError, ArgumentError, IOError}テクニカルノート
-
▪
- 例外の処理
関連するガイド
-
▪
- ロバスト性とエラー処理 ▪
- フロー制御 ▪
- パッケージの保護
テキスト
Wolfram Research (2026), ExceptionTypes, Wolfram言語関数, https://reference.wolfram.com/language/ref/ExceptionTypes.html.
CMS
Wolfram Language. 2026. "ExceptionTypes." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ExceptionTypes.html.
APA
Wolfram Language. (2026). ExceptionTypes. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExceptionTypes.html
BibTeX
@misc{reference.wolfram_2026_exceptiontypes, author="Wolfram Research", title="{ExceptionTypes}", year="2026", howpublished="\url{https://reference.wolfram.com/language/ref/ExceptionTypes.html}", note=[Accessed: 07-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_exceptiontypes, organization={Wolfram Research}, title={ExceptionTypes}, year={2026}, url={https://reference.wolfram.com/language/ref/ExceptionTypes.html}, note=[Accessed: 07-September-2026]}