Author(s): Isabel Martín García.
Version: 1.11#222 (2004/5/24, 13:8:7 CEST)
Version of last change: 1.9#155 (2003/12/4, 17:39:9 CET)
This module is an error handler. If the format of the arguments is not correct in a call to a chartlib predicate an exception will be thrown . You can wrap the chartlib predicates with the predicates exported by this module to handle automatically the errors if any.
chartlib_errhandle
)chartlib_errhandle
)
chartlib_text_error_protect(G)
This predicate catches the thrown exception and sends it to the appropiate handler. The handler will show the error message in the standard output.
Meta-predicate with arguments: chartlib_text_error_protect(goal)
.
Usage:
G
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
chartlib_visual_error_protect(G)
This predicate catches the thrown exception and sends it to the appropiate handler. The handler will pop up a message box.
Meta-predicate with arguments: chartlib_visual_error_protect(goal)
.
Usage:
G
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
chartlib_errhandle
)
handler_type(X)
The library chartlib includes two error handlers already programmed.
handler_type(text). handler_type(visual).
error_message(ErrorCode, ErrorMessage)
Binds the error code with its corresponding text message.
Usage:
ErrorCode
is an atom.
(basic_props:atm/1
)
ErrorMessage
is an atom.
(basic_props:atm/1
)
error_file(ErrorCode, ErrorFile)
Binds the error code with its corresponding script error file.
Usage:
ErrorCode
is an atom.
(basic_props:atm/1
)
ErrorFile
is an atom.
(basic_props:atm/1
)
Go to the first, previous, next, last section, table of contents.