12.4.19 Errors and warnings
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • The Foreign Include File
          • Errors and warnings
            • PL_warning()
            • PL_fatal_error()
            • PL_system_error()
            • PL_api_error()
            • PL_print_message()
    • Packages
Availability:C-language interface function
int PL_api_error(format, a1, ...)
As PL_system_error(), but using [ERROR: API error:] and provides additional technical details such as the thread that trapped the error and backtrace of the C and Prolog stacks. This function is used by the CĀ API and may be used by other language bindings to report invalid use of the API. This function causes the process to be terminated.