Technical data
onerror
ModelSim EE/PLUS Reference Manual Simulator Command Reference
-
339
onerror
The
onerror
command is used within a macro; it specifies one or more commands
to be executed when a running macro encounters an error. Using the
onerror
command without arguments will return the current
onerror
command string. Use
an empty string to change the
onerror
command back to its default behavior (i.e.,
onbreak ""). Use
onerror
with a
resume
command (p358)
to allow an error
message to be printed without halting the execution of the macro file.
Syntax
onerror
{ [<command> [; <command>] ...] }
Arguments
<command>
Any VSIM command can be used as an argument to
onerror
. If you want to use more than
one command, use a semicolon to separate the commands, or place them on multiple lines.
The entire command string must be placed in curly braces. Optional.
See also
do
command (p302) ,
onbreak
command (p337) ,
resume
command (p358), and
the
status
command (p370)