Failure
Failure["tag", assoc] represents a failure of a type indicated by tag, with details in the association.
Examples
Create a failure object:
Failure["MyError", <|"MessageTemplate" -> "Something went wrong"|>]
(* Failure["MyError", <|"MessageTemplate" -> "Something went wrong"|>] *)Test for failure:
FailureQ[Failure["Error", <||>]]
(* True *)Please visit the official Wolfram Language Reference for more details.