ILIAS  release_7 Revision v7.30-3-g800a261c036
ilAssLacOperatorNotSupportedByExpression.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
16{
20 protected $operator;
21
25 protected $expression;
26
32 {
33 $this->expression = $expression;
34 $this->operator = $operator;
35
36 parent::__construct(sprintf(
37 'The expression "%s" is not supported by the operator "%s"',
38 $this->getExpression(),
39 $this->getOperator()
40 ));
41 }
42
46 public function getExpression()
47 {
48 return $this->expression;
49 }
50
54 public function getOperator()
55 {
56 return $this->operator;
57 }
58
63 public function getFormAlert(ilLanguage $lng)
64 {
65 return sprintf(
66 $lng->txt("ass_lac_operator_not_supported_by_expression"),
67 $this->getOperator(),
68 $this->getExpression()
69 );
70 }
71}
An exception for terminatinating execution or to throw for unit testing.
language handling
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$lng