Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

ErrorTools

Guides

  • ErrorTools

Tech Notes

  • Error Handling with ErrorTools

Symbols

  • Raise
Wolfram`ErrorTools`
Raise
​
Raise
[tag,assoc]
raises a
Failure
[…]
exception with type indicated by expanding
tag
and details given by the association
assoc
..
​
​
Raise
[tag,"fmt",fmtargs…]
raises a
Failure
[…]
exception with type indicated by expanding
tag
and with the specified formatted message
​
​
Raise
[tag,assoc,"fmt",fmtargs…]
raises a
Failure
[…]
exception with type indicated by expanding
tag
, details given by the association
assoc
, and the specified formatted message.
​
Details and Options

Examples  
(7)
Basic Examples  
(3)
Raise a
Failure
exception with a custom message and handle it:
In[1]:=
Handle[​​ Raise["TheError","Something went wrong."],​​ _Failure​​]
Out[1]=
Failure

Message:
Something went wrong.
Tag:
TheError

​
Raise a
Failure
without any enclosing handler:
In[1]:=
Raise["TheError","Something went wrong."]
Throw
:Uncaught ThrowFailure

Message:
Something went wrong.
Tag:
TheError
,$RaiseThrowTag returned to top level.
Out[1]=
HoldThrowFailure

Message:
Something went wrong.
Tag:
TheError
,$RaiseThrowTag
​
Provide custom formatted arguments to raised
Failure
messages:
In[1]:=
Handle[​​ Raise["TheError","Something went wrong at ``.",DateString[]],​​ _Failure​​]
Out[1]=
Failure

Message:
Something went wrong at
Thu 5 Oct 2023 15:11:02
.
Tag:
TheError

Scope  
(2)

Properties & Relations  
(1)

Possible Issues  
(1)

SeeAlso
Failure
 
▪
Enclose
 
▪
Confirm
TechNotes
▪
Error Handling With Error Tools
RelatedGuides
▪
ErrorTools
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com