diff --git a/documentation/current/eiffelstudio/eiffelstudio-guided-tour/handling-syntax-and-validity-errors.wiki b/documentation/current/eiffelstudio/eiffelstudio-guided-tour/handling-syntax-and-validity-errors.wiki index 6eda3004..1b27b75f 100644 --- a/documentation/current/eiffelstudio/eiffelstudio-guided-tour/handling-syntax-and-validity-errors.wiki +++ b/documentation/current/eiffelstudio/eiffelstudio-guided-tour/handling-syntax-and-validity-errors.wiki @@ -5,7 +5,7 @@ So far we have tried to make sure that everything went smoothly. But in actual s
Writable entity, continues with the symbol :=, and ends with an Expression. This is a purely structural specification, saying nothing for example about the types of the Writable and the Expression.
* Validity, applicable only to syntactically legal texts, defines required consistency conditions. A typical validity rule states that in an assignment the right-hand-side Expression must conform -- a property of its type, defined rigorously on the basis of inheritance -- to the left-hand-side Writable. Eiffel has about 75 validity rules; part of the language's originality is that these rules are of the "if and only if" form, not only telling you individual error cases ("this is valid only if ... ") but also reassuring you that your text will in fact be valid if it satisfies the conditions listed exhaustively.
* Semantics, applicable only to valid texts, defines the software's expected run-time behavior. A typical semantic rule states that an assignment replaces the value of its left-hand-side Writable by the value of the right-hand-side Expression at the time the assignment is executed, with precise rules on the different possible cases involving references, objects and simple values.
@@ -25,11 +25,11 @@ To see what happens for a syntax error, replace the keyword is by <
To correct the error, just bring the mouse back to its location, remove the spurious t, and click Save again; also click Compile to make sure that the project is recompiled up-to-date.
-You may wonder why the syntax error messages are not a little more verbose than just Syntax error. The reason is merely that Eiffel's syntax, being simple and regular, does not require sophisticated error messages; syntax errors usually result from trivial oversights. If you make a syntax error and the reason is not immediately clear, check the syntax summary in the appendix of [http://www.eiffel.com/doc/ Eiffel: The Language] .
+You may wonder why the syntax error messages are not a little more verbose than just Syntax error. The reason is merely that Eiffel's syntax, being simple and regular, does not require sophisticated error messages; syntax errors usually result from trivial oversights. If you make a syntax error and the reason is not immediately clear, check the syntax summary in the appendix of [[Eiffel: The Language]].
VXXX (the first letter is always V).
+A validity error is a violation of one of the validity constraints given in [[Eiffel: The Language]]. Every such constraint is identified by a four-letter code of the form VXXX (the first letter is always V).
A validity error will produce a precise error message, which includes the validity code. Although short, the error message is usually sufficient to find out what the error is. If not, you can get the complete rule, straight from the book.
@@ -67,7 +67,7 @@ As is often the case when dropping into a specific hole, you don't need to shoot
[[Image:index-81]]
-The result is to display the complete text of the violated rule, straight from the pages of [http://www.eiffel.com/doc/ Eiffel: The Language] .
+The result is to display the complete text of the violated rule, straight from the pages of [[Eiffel: The Language]].
The rule has several clauses, numbered. Since the error message showed the error code as VUAR(1), the violated clause is the first; this convention of showing the clause number in parentheses applies to all multi-clause validity constraints.