error

BAP Online Manuals : Library Reference : Library by Name : error
Previous: eof
Next: exec

6.2.45. error

displays the element of its argument list to the console

SYNOPSIS

INCLUDE 'prolib.h'
error(["Help\n"])
error(["Type has wrong value: ",Type,"\n"])

SYNTAX

error(ErrorList) (i)

ARGUMENTS

voidlist(ErrorList) (i) List which elements are to be written.

DESCRIPTION

The elements of the ErrorList are written to the console(standard error stream).

EXAMPLE

InputFile = "test.dat",
( 	
	see("InputFile"),! 
; 
	error(["Couldn't open File: ",InputFile,"\n"]),!,fail
)
read(data).

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

check_equal , write , display


BAP Online Manuals : Library Reference : Library by Name : error
Previous: eof
Next: exec