public function setTraceMessage($traceMessage)
    {
        if (gettype($traceMessage) === 'string') {
            $this->traceMessage = $traceMessage;
        } else {
            $msg = "The traceMessage argument must be a string, '" . gettype($traceMessage) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setTraceMessage($traceMessage)
    {
        if (gettype($traceMessage) === 'string') {
            $this->traceMessage = $traceMessage;
        } else {
            $msg = "The traceMessage argument must be a string, '" . gettype($traceMessage) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setTraceMessage ( $ traceMessage ) { if ( gettype ( $ traceMessage ) === 'string' ) { $ this -> traceMessage = $ traceMessage ; } else { $ msg = "The traceMessage argument must be a string, '" . gettype ( $ traceMessage ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Get the message about the traced QtiComponent object.

@param string $traceMessage A human-readable message.
@throws \InvalidArgumentException If $traceMessage is not a string.
Get the message about the traced QtiComponent object .