*/ namespace oat\taoQtiTest\models\runner; use qtism\runtime\tests\AssessmentTestSessionState; class QtiRunnerPausedException extends \common_Exception implements \common_exception_UserReadableException { /** * Create a new QtiRunnerClosedException object. * * @param string $message A technical infiormation message. * @param integer $code A code to explicitely identify the nature of the error. */ public function __construct($message = 'The test has been suspended', $code = AssessmentTestSessionState::SUSPENDED) { parent::__construct($message, $code); } /** * Returns a translated human-readable message destinated to the end-user. * * @return string A human-readable message. */ public function getUserMessage() { return __('This test has been suspended'); } }