You are here

public function MathfieldMathExpr::trigger in Math Field 7

Handle errors gracefully.

Throws

MathfieldException

Overrides ctools_math_expr::trigger

File

includes/mathfield.math_expr.inc, line 19

Class

MathfieldMathExpr
Evalueate a mathfield expression.

Code

public function trigger($msg) {
  $this->last_error = $msg;
  if (!$this->suppress_errors) {
    throw new MathfieldException($msg);
  }
  return FALSE;
}