[not loaded]
messages.pl
translate_message(+Term)// is det- Translate a message Term into message lines. The produced lines
is a list of
- nl
- Emit a newline
- Fmt - Args
- Emit the result of
format(Fmt, Args) - Fmt
- Emit the result of
format(Fmt) - ansi(Code, Fmt, Args)
- Use ansi_format/3 for color output.
- flush
- Used only as last element of the list. Simply flush the output instead of producing a final newline.
- at_same_line
- Start the messages at the same line (instead of using ~N)
translate_message(+Term)// is det- Translate a message term into message lines. This version may be called from user and library definitions for message translation.
term_message(+Term)//- Deal with the formal argument of
error(Format, ImplDefined)exception terms. The ImplDefined argument is handled by swi_location//2.
permission_error(Action, Type, Object)//[private]- Translate permission errors. Most follow te pattern "No permission to Action Type Object", but some are a bit different.
tabling_existence_error(+Ball, +Context)//[private]- Called on invalid shift/1 calls. Track those that result from tabling errors.
dwim_predicates(+PI, -Dwims)[private]- Find related predicate indicators.
swi_location(+Term)// is det- Print location information for
error(Formal, ImplDefined)from the ImplDefined term.
swi_extra(+Term)// is det[private]- Extract information from the second argument of an
error(Formal, ImplDefined)that is printed after the core of the message.
prolog_message(+Term)//[private]- out_of_c_stack[private]
- The thread's C-stack limit was exceeded. Give some advice on how to resolve this.
user_version_messages(+Terms)//[private]- Helper for the
welcomemessage to print information registered using version/1. - user_version_message(+Term)[private]
message_lang(-Lang) is multi[private]- True when Lang is a language id preferred for messages. Starts with
the most specific language (e.g.,
nl_BE) and ends withen.
current_message_lang(-Lang) is det[private]- Get the current language for messages.
print_message(+Kind, +Term)- Print an error message using a term as generated by the exception system.
print_system_message(+Term, +Kind, +Lines)[private]- Print the message if the user did not intecept the message. The first is used for errors and warnings that can be related to source-location. Note that syntax errors have their own source-location and should therefore not be handled this way.
msg_context(+Prefix0, -Prefix) is det[private]- Add contextual information to a message. This uses the Prolog flag
message_context. Recognised context terms are:- time
time(Format)- thread
In addition, the hook message_prefix_hook/2 is called that allows for additional context information.
print_message_lines(+Stream, +PrefixOrKind, +Lines)- Quintus compatibility predicate to print message lines using a prefix.
insert_prefix(+Lines, +Prefix, +Ctx, -PrefixedLines)[private]
print_message_lines(+Stream, +Lines)[private]
safe_format(+Stream, +Format, +Args) is det[private]
message_to_string(+Term, -String)- Translate an error term into a string
print_once(Message, Level)[private]- True for messages that must be printed only once.
must_print(+Level, +Message)[private]- True if the message must be printed.