FailureQ
Examples
open all close allBasic Examples (1)
Properties & Relations (1)
$Failed is returned when an operation cannot be performed:
FileByteCount["xxxx"]FailureQ[%]Failure objects are returned by functions like Interpreter when they cannot produce a result:
Interpreter["Integer"]["abc"]FailureQ[%]$Aborted is returned when Abort[] executes or when the user manually aborts a computation:
AbortProtect[Abort[]]FailureQ[%]Possible Issues (2)
The symbol Failure on its own does not represent failure:
FailureQ[Failure]FailureQ[Failure["tag", <||>]]Failure of a function to evaluate or the production of messages is not considered to represent failure:
FailureQ[Take[{}, 5]]Use Check to detect when an evaluation produces messages:
Check[Take[{}, 5], $Failed]FailureQ[%]Related Guides
History
Text
Wolfram Research (2015), FailureQ, Wolfram Language function, https://reference.wolfram.com/language/ref/FailureQ.html.
CMS
Wolfram Language. 2015. "FailureQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FailureQ.html.
APA
Wolfram Language. (2015). FailureQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FailureQ.html
BibTeX
@misc{reference.wolfram_2026_failureq, author="Wolfram Research", title="{FailureQ}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/FailureQ.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_failureq, organization={Wolfram Research}, title={FailureQ}, year={2015}, url={https://reference.wolfram.com/language/ref/FailureQ.html}, note=[Accessed: 12-June-2026]}