ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilAssLacConditionParserException.php
Go to the documentation of this file.
1<?php
2
3require_once 'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Exception/ilAssLacException.php';
4require_once 'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Exception/ilAssLacFormAlertProvider.php';
5
15{
19 protected $column;
20
24 public function __construct($column)
25 {
26 $this->column = $column;
27
28 parent::__construct(sprintf(
29 'The expression at position "%s" is not valid',
30 $this->getColumn()
31 ));
32 }
33
37 public function getColumn()
38 {
39 return $this->column;
40 }
41
46 public function getFormAlert(ilLanguage $lng)
47 {
48 return sprintf(
49 $lng->txt("ass_lac_invalid_statement"),
50 $this->getColumn()
51 );
52 }
53}
An exception for terminatinating execution or to throw for unit testing.
language handling
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$lng