error Reference

Report Max errors

error

Description

Listens for and reports Max errors as message output. This will allow for error management in cases where it is not appropriate to display the Max window.

Examples

Intercept error messages

Arguments

on [int]

Optional

Turn on error reporting. If no argument is given, then error reporting will be off until an int message is received.

Attributes

Common Box Attributes

Messages

int

Arguments

enable [int]
The error object allows you to catch errors and output them as Max messages. A non-zero number starts the error object "listening" for Max errors. The error object must be listening to produce any output. A 0 turns off listening.

float

Arguments

enable [float]
Converted to int.

error

Arguments

message [list]
The word error followed by any message will send that message out the outlet.

Output

symbol

Any Max error generated by any object in any patch while the error object is listening is sent out the outlet preceded by the symbol error. The messages are output as individual words so you can check for specific failures.

If you want to strip off the initial error message from the object's output, use a route error object. If you want to use the error object's output as a message, put a prepend read object between route error and the object that will process the error message.

See Also

Name Description
print