Refactoring error messages. I changed 'em from public static final constants to methods. The benefit is that now the arguments are typechecked. More importantly, now we can gather coverage on methods. Which opens the door to figuring out which methods we have test coverage for (not very many!)

git-svn-id: https://google-guice.googlecode.com/svn/trunk@516 d779f126-a31b-0410-b53b-1d3aecad763e
diff --git a/src/com/google/inject/internal/ErrorHandler.java b/src/com/google/inject/internal/ErrorHandler.java
index 60ad31e..2017d69 100644
--- a/src/com/google/inject/internal/ErrorHandler.java
+++ b/src/com/google/inject/internal/ErrorHandler.java
@@ -16,6 +16,8 @@
 
 package com.google.inject.internal;
 
+import com.google.inject.spi.Message;
+
 /**
  * Handles errors in the Injector.
  *
@@ -26,10 +28,10 @@
   /**
    * Handles an error.
    */
-  void handle(Object source, String message);
+  void handle(Object source, ErrorMessage errorMessage);
 
   /**
-   * Handles an error.
+   * Handles a user-reported error.
    */
-  void handle(Object source, String message, Object... arguments);
+  void handle(Message message);
 }