Go to the first, previous, next, last section, table of contents.


Error reporting when compiling classes and interfaces

Author(s): Angel Fernandez Pineda.

Version: 1.5#15 (1999/12/14, 15:30:23 MET)

This chapter will explain error reporting when declaring a class. The first section will explain compile-time errors, this is, any semantic error which may be determined at compile time. The second section will explain run-time errors, this is, any exception that may be raisen by the incorrect usage of O'CIAO. Some of those errors may be not reported at compile time, due to the use of meta-programational structures. For example:

functor(X,my_method,0),call(X).

O'CIAO is not able to check whether my_method/0 is a valid method or not. So, this kind of checking is left to run time.

Error reporting at compile time

Error reporting at run time

Normal Prolog module system interaction

O'CIAO works in conjunction with the habitual CIAO Prolog module system, which also reports its own error messages. This will cause CIAO to report a little criptic error messages due to the general mechanism of source-to-source expansion. Those are some tips you must consider when compiling a class:

Usage and interface (class_error)


Go to the first, previous, next, last section, table of contents.