Did you know ...
Search Documentation:
PL_type_error()
HOME
DOWNLOAD
SWI-Prolog
Sources/building
Docker images
Add-ons
Browse GIT
DOCUMENTATION
Manual
Packages
FAQ
Command line
PlDoc
Bluffers
▶
Prolog syntax
PceEmacs
HTML generation
License
Publications
Rev 7 Extensions
TUTORIALS
Beginner
▶
Getting started
Learn Prolog Now!
Simply Logical
Debugger
Development tools
Advanced
▶
Modules
Grammars (DCGs)
clp(fd)
Printing messages
PlDoc
Web applications
▶
Web applications
Let's Encrypt!
Pengines
Semantic web
▶
ClioPatria
RDF namespaces
Graphics
▶
XPCE
GUI options
Machine learning
▶
Probabilistic Logic Programming
External collections
▶
Meta level tutorials
For packagers
▶
Linux packages
COMMUNITY
IRC
Forum & mailing list
Blog
News
Report a bug
Submit a patch
Submit an add-on
Roadmap (on GitHub)
External links
Contributing
Code of Conduct
Contributors
SWI-Prolog items
COMMERCIAL
WIKI
Login
View changes
Sandbox
Wiki help
All tags
Documentation
Reference manual
Foreign Language Interface
The Foreign Include File
Convenient functions to generate Prolog exceptions
PL_get_atom_ex()
PL_get_integer_ex()
PL_get_long_ex()
PL_get_int64_ex()
PL_get_uint64_ex()
PL_get_intptr_ex()
PL_get_size_ex()
PL_get_bool_ex()
PL_get_float_ex()
PL_get_char_ex()
PL_get_pointer_ex()
PL_get_list_ex()
PL_get_nil_ex()
PL_unify_list_ex()
PL_unify_nil_ex()
PL_unify_bool_ex()
PL_instantiation_error()
PL_uninstantiation_error()
PL_representation_error()
PL_type_error()
PL_domain_error()
PL_existence_error()
PL_permission_error()
PL_resource_error()
PL_syntax_error()
Packages
Availability:
C-language interface function
bool
PL_type_error
(
const char *expected, term_t culprit
)
Raise
type_error(expected, culprit)
. See
type_error/2
.