Return to index

error functions

[]map = error_call_chain()

top

Returns full call chain with function names and arguments.

Example:

# Example for error_call_chain
try
    println error_call_chain()
catch err
    println "Error handler only"
endtry


[]string = error_call_stack()

top

Returns function names in call chain.

Example:

# Example for error_call_stack
try
    println error_call_stack()
catch err
    println "Error handler only"
endtry


error_default_handler()

top

Calls the default Za error handler.

Example:

# Example for error_default_handler
try
    println error_default_handler()
catch err
    println "Error handler only"
endtry


error_emergency_exit(int)

top

Emergency exit with specified code.

Example:

# Example for error_emergency_exit
try
    println error_emergency_exit()
catch err
    println "Error handler only"
endtry


error_extend(bool)

top

Enable/disable enhanced error context display.

Example:

# Example for error_extend
println error_extend(true)


string = error_filename()

top

Returns the filename where the error occurred.

Example:

# Example for error_filename
try
    println error_filename()
catch err
    println "Error handler only"
endtry


map = error_global_variables()

top

Returns user-defined global variables (same as mdump).

Example:

# Example for error_global_variables
try
    println error_global_variables()
catch err
    println "Error handler only"
endtry


map = error_local_variables()

top

Returns variables in the error frame.

Example:

# Example for error_local_variables
try
    println error_local_variables()
catch err
    println "Error handler only"
endtry


string = error_message()

top

Returns the original error message text.

Example:

# Example for error_message
try
    println error_message()
catch err
    println "Error handler only"
endtry


[]string = error_source_context(int,int)

top

Returns source lines (before, after) around error.

Example:

# Example for error_source_context
try
    println error_source_context(1, 1)
catch err
    println "Error handler only"
endtry


map = error_source_location()

top

Returns error location as {file, line, function, module}.

Example:

# Example for error_source_location
try
    println error_source_location()
catch err
    println "Error handler only"
endtry