Added a MEngineException class.