Success

Success["tag",assoc]

represents a success of a type indicated by tag, with details given by the association assoc.

Details

  • The association assoc typically contains:
  • "MessageTemplate"a string template for a message
    "MessageParameters"parameters to use for the message template
  • The parameters are effectively inserted into the message template using TemplateApply.
  • With the entry "MessageTemplate":>symb::name, a message name can be stored for use when a message is generated.
  • Success is generated by SendMail, EntityPrefetch and other functions that typically do not produce an output directly related to the evaluation being performed.

Examples

open allclose all

Basic Examples  (1)

Create a Success expression with a given tag and association:

Scope  (3)

Success can have any number of keys in its association:

Indicate success using a message template and positional parameters:

Create a Success expression with a given tag and association:

Properties & Relations  (3)

Success is returned by functions like SendMail and EntityPrefetch:

The opposite of Success is Failure:

Only the first two keys are shown in the typeset form when closed:

If a "MessageTemplate" is provided, it always appears first:

When opened, all keys and the tag are displayed:

Introduced in 2018
 (11.3)