rawMessage = $message;
// Call parent constructor with the raw message
// ViewException will handle the display
parent::__construct($message, 0, 1, $file, $line, $previous);
$this->column = $column;
}
/**
* Get the column number
*/
public function getColumn(): ?int
{
return $this->column;
}
/**
* Set the column number
*/
public function setColumn(int $column): void
{
$this->column = $column;
}
/**
* Get the code context
*/
public function getContext(): ?string
{
return $this->context;
}
/**
* Set the code context
*/
public function setContext(string $context): void
{
$this->context = $context;
}
/**
* Get the suggestion
*/
public function getSuggestion(): ?string
{
return $this->suggestion;
}
/**
* Set the suggestion
*/
public function setSuggestion(string $suggestion): void
{
$this->suggestion = $suggestion;
}
/**
* Get the raw unformatted message
*/
public function getRawMessage(): string
{
return $this->rawMessage;
}
/**
* Get the view source - override to handle .jqhtml files
* Ignition uses this to display the source code preview
*/
public function getSourceCode(): string
{
if (file_exists($this->getFile())) {
return file_get_contents($this->getFile());
}
return '';
}
}