• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

A.16 library(error): Error generating support
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(error): Error generating support
          • type_error/2
          • domain_error/2
          • existence_error/2
          • existence_error/3
          • permission_error/3
          • instantiation_error/1
          • uninstantiation_error/1
          • representation_error/1
          • syntax_error/1
          • resource_error/1
          • must_be/2
          • is_of_type/2
          • has_type/2
          • current_encoding/1
          • current_type/3
    • Packages
Availability::- use_module(library(error)).(can be autoloaded)
Sourcerepresentation_error(+Flag)
A representation error indicates a limitation of the implementation: the value is logically valid, but cannot be handled. Examples are an arity higher than supported by the system or a Prolog integer that is too large for the C integer type used by a foreign predicate.

Besides the atomic flags defined by ISO, SWI-Prolog uses flags of the form Id(Culprit), where Culprit is the value that cannot be represented, e.g., representation_error(uint(4294967296)) or representation_error(nul_terminated_string(Text)).

ClioPatria (version V3.1.1-51-ga0b30a5)