Subversion Repositories wimsdev

Rev

Rev 16121 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
!set wims_module_error=error: $error
2
!if $oldpenalty<$penalty
16114 bpr 3
  !set penaltymsg=You got a penalty for this serious error.
4
  !set oldpenalty=$penalty
20 reyssat 5
!endif
6
 
3866 bpr 7
<b>$wims_name_Error</b>
20 reyssat 8
 
9
!set n=!wordcnt $error
10
!if $n>1
16114 bpr 11
  $error
12
  !exit
20 reyssat 13
!endif
14
 
16121 bpr 15
!if $error iswordof bad_data bad_reply \
20 reyssat 16
    bad_answer bad_exo nofloat unjustified check_fail no_object\
17
    bad_step illegal_method bad_method bad_env fixedgoal msg\
18
    unknown_variable
16114 bpr 19
  !goto $error
20 reyssat 20
!else
16114 bpr 21
  !msg $error
22
  !exit
20 reyssat 23
!endif
24
 
25
:bad_data
16121 bpr 26
Vous avez entré une donnée incompréhensible ou hors contexte.
27
Erreur de frappe&nbsp;?
16114 bpr 28
!exit
20 reyssat 29
 
30
:bad_reply
31
 No! Your reply is wrong. Please try again.
16114 bpr 32
!exit
20 reyssat 33
 
34
:unknown_variable
35
 The variable <b><em>$unknown</em></b> is not defined here.
16114 bpr 36
!exit
20 reyssat 37
 
38
:nofloat
39
 Decimal numbers are not allowed in this exercise. Write 1/3 instead of
40
 0.33333, and 1/4 instead of 0.25!
16114 bpr 41
!exit
20 reyssat 42
 
43
:unjustified
44
 Sorry, but this method does not accept your input without further
45
 justification. You should try other means.
16114 bpr 46
!exit
20 reyssat 47
 
48
:check_fail
49
 Software error: please report the bug.
16114 bpr 50
!exit
20 reyssat 51
 
52
:no_object
16121 bpr 53
 You have nothing at this stage to apply the method
54
 <span class="oef_indbad">$badmeth</span>.
16114 bpr 55
!exit
20 reyssat 56
 
57
:bad_step
58
 You have tried to go to a non-valid step. Bad manipulation?
16114 bpr 59
!exit
20 reyssat 60
 
61
:illegal_method
62
 You have tried to use a non-allowed method. Attempt to cheat?
16114 bpr 63
!exit
20 reyssat 64
 
65
:bad_method
66
 The method does not exist. This is probably an error of the exercise.
67
 Please contact its author in order to fix it.
16114 bpr 68
!exit
20 reyssat 69
 
70
:bad_env
71
 This method is incompatible with the environment of the exercise.
16114 bpr 72
!exit
20 reyssat 73
 
74
:fixedgoal
75
 This exercise does not allow you to modify the goal. Therefore you
76
 cannot use this method.
16114 bpr 77
!exit
20 reyssat 78
 
79
:msg
80
 $msg
16114 bpr 81
!exit
20 reyssat 82
 
83
:bad_answer
16121 bpr 84
 Your reply
85
<div class="wimscenter">
14628 bpr 86
 <b>$bad_name</b> = <span class="tt">$bad_value</span> </div>
16114 bpr 87
!if unknownword iswordof $test
20 reyssat 88
  !set w=!word 3 of $test
16122 bpr 89
  is not understandable: the word
16121 bpr 90
  <span class="oef_indbad">$w</span>
20 reyssat 91
  in the answer is unrelated to this problem. Please correct.
92
  !exit
16114 bpr 93
!endif
94
!if nocompute iswordof $test
20 reyssat 95
  is not allowed: please carry out the computation yourself, and
96
  submit the resulting value.
97
  !exit
16114 bpr 98
!endif
99
!if badform iswordof $test
20 reyssat 100
  is not written as required. Please rewrite it in the correct form.
101
  !exit
16114 bpr 102
!endif
103
!if notunit iswordof $test
20 reyssat 104
  is only a number: please precise the unit in your answer.
105
  !exit
16114 bpr 106
!endif
14628 bpr 107
 is not understandable.
20 reyssat 108
 Please correct the error and resubmit your reply.
16114 bpr 109
!exit
20 reyssat 110
 
111
:bad_exo
14628 bpr 112
 Due to an error in this exercise (the correct answer for <b>$(replyname$i)</b>
20 reyssat 113
 is invalid), it is impossible to test the
114
 correctness of your answer. The only solution for you is to change the
115
 exercise; sorry.
116
 <p>
14628 bpr 117
 Please
16121 bpr 118
!if $email!=$empty
20 reyssat 119
  !mailurl $email contact the author
16121 bpr 120
!else
20 reyssat 121
  contact the author
16121 bpr 122
!endif
20 reyssat 123
 of the exercise if you want to report the error.
16114 bpr 124
</p>
125
!exit