<?php
class MyClass {
   public function __call($MethodName, $Parameters)
   {
       if (!method_exists($this, $MethodName))            
         throw new Exception('Error Getting Method: ' . $MethodName . ' does not exist!');
       // THIS line number appears in the exception, but
       // is useless because it isn't the problem.
   }
}


$MyClass = new MyClass();
// THIS line number should be in the exception,
// since its the line that's wrong.
$MyClass->GetSomethingThatDoesNotExist(); 