aot_err_module Module

This module provides the handling of errors.

The aoterr_* constants are used to identify specific kinds of errors that might appear when attempting to obtain a value from the Lua script.

The aot_err_handler provides access to error messages that might be issued by Lua itself for routines in the Lua API that return an error code.


Uses

  • module~~aot_err_module~~UsesGraph module~aot_err_module aot_err_module module~flu_binding flu_binding module~aot_err_module->module~flu_binding module~lua_parameters lua_parameters module~flu_binding->module~lua_parameters module~flu_kinds_module flu_kinds_module module~flu_binding->module~flu_kinds_module iso_c_binding iso_c_binding module~flu_binding->iso_c_binding module~lua_fif lua_fif module~flu_binding->module~lua_fif module~dump_lua_fif_module dump_lua_fif_module module~flu_binding->module~dump_lua_fif_module module~lua_parameters->iso_c_binding module~lua_fif->module~lua_parameters module~lua_fif->iso_c_binding module~dump_lua_fif_module->iso_c_binding

Used by

  • module~~aot_err_module~~UsedByGraph module~aot_err_module aot_err_module module~aot_quadruple_top_module aot_quadruple_top_module module~aot_quadruple_top_module->module~aot_err_module module~aot_quadruple_table_module aot_quadruple_table_module module~aot_quadruple_table_module->module~aot_err_module module~aot_quadruple_table_module->module~aot_quadruple_top_module module~aot_top_module aot_top_module module~aot_quadruple_table_module->module~aot_top_module module~aot_table_ops_module aot_table_ops_module module~aot_quadruple_table_module->module~aot_table_ops_module module~aot_top_module->module~aot_err_module module~aot_top_module->module~aot_quadruple_top_module module~aot_extdouble_top_module aot_extdouble_top_module module~aot_top_module->module~aot_extdouble_top_module module~aot_table_module aot_table_module module~aot_table_module->module~aot_err_module module~aot_table_module->module~aot_quadruple_table_module module~aot_table_module->module~aot_top_module module~aot_extdouble_table_module aot_extdouble_table_module module~aot_table_module->module~aot_extdouble_table_module module~aot_table_module->module~aot_table_ops_module module~aot_extdouble_top_module->module~aot_err_module module~aot_extdouble_table_module->module~aot_err_module module~aot_extdouble_table_module->module~aot_top_module module~aot_extdouble_table_module->module~aot_extdouble_top_module module~aot_extdouble_table_module->module~aot_table_ops_module module~aot_fun_module aot_fun_module module~aot_fun_module->module~aot_top_module module~aot_fun_module->module~aot_table_module module~aot_extdouble_fun_module aot_extdouble_fun_module module~aot_fun_module->module~aot_extdouble_fun_module module~aot_quadruple_fun_module aot_quadruple_fun_module module~aot_fun_module->module~aot_quadruple_fun_module module~aot_references_module aot_references_module module~aot_fun_module->module~aot_references_module module~aot_extdouble_fun_module->module~aot_table_module module~aot_extdouble_fun_module->module~aot_extdouble_top_module module~aot_extdouble_vector_module aot_extdouble_vector_module module~aot_extdouble_vector_module->module~aot_top_module module~aot_extdouble_vector_module->module~aot_extdouble_top_module module~aot_extdouble_vector_module->module~aot_table_ops_module module~aot_table_ops_module->module~aot_top_module module~aot_vector_module aot_vector_module module~aot_vector_module->module~aot_top_module module~aot_vector_module->module~aot_extdouble_vector_module module~aot_vector_module->module~aot_table_ops_module module~aot_quadruple_vector_module aot_quadruple_vector_module module~aot_vector_module->module~aot_quadruple_vector_module module~aot_quadruple_vector_module->module~aot_quadruple_top_module module~aot_quadruple_vector_module->module~aot_top_module module~aot_quadruple_vector_module->module~aot_table_ops_module module~aot_quadruple_fun_module->module~aot_quadruple_top_module module~aot_quadruple_fun_module->module~aot_table_module module~aot_quadruple_out_module aot_quadruple_out_module module~aot_quadruple_out_module->module~aot_quadruple_top_module module~aot_path_module aot_path_module module~aot_path_module->module~aot_table_module module~aot_path_module->module~aot_fun_module module~aotus_module aotus_module module~aot_path_module->module~aotus_module module~aotus_module->module~aot_top_module module~aotus_module->module~aot_table_module module~aotus_module->module~aot_vector_module module~aot_extdouble_out_module aot_extdouble_out_module module~aot_extdouble_out_module->module~aot_extdouble_top_module module~aot_references_module->module~aot_table_ops_module module~aot_out_module aot_out_module module~aot_out_module->module~aot_quadruple_out_module module~aot_out_module->module~aot_extdouble_out_module

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, public, parameter:: aoterr_Fatal =0

Indication of a a fatal error if this bit is set in an error code.

integer, public, parameter:: aoterr_NonExistent =1

Indication that the requested value does not exist in the Lua script if this bit is set in an error code.

integer, public, parameter:: aoterr_WrongType =2

Indication that a requested value exists in the Lua script but has the wrong data type.


Subroutines

public subroutine aot_err_handler(L, err, msg, ErrString, ErrCode)

Error handler to capture Lua errors.

Read more…

Arguments

TypeIntentOptionalAttributesName
type(flu_State) :: L

Handle to the Lua script

integer, intent(in) :: err

Lua error code to evaluate

character(len=*), intent(in) :: msg

Some additional message that should be prepended to the Lua error message if the program is stopped by the handler (no ErrString or ErrCode provided).

character(len=*), intent(out), optional :: ErrString

Resulting error string obtained by combining msg and the error description on the Lua stack.

integer, intent(out), optional :: ErrCode

The Lua error code, just the same as err.