com.google.inject.spi
Class Message

java.lang.Object
  extended by com.google.inject.spi.Message

public class Message
extends Object

A message. Contains a source pointing to the code which resulted in this message and a text message.


Constructor Summary
Message(Object source, String message)
           
Message(String message)
           
 
Method Summary
 boolean equals(Object o)
           
 String getMessage()
          Gets the error message text.
 Object getSource()
          Gets the source of the configuration which resulted in this error message.
 String getSourceString()
          Returns a string representation of the source object.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Message

public Message(Object source,
               String message)

Message

public Message(String message)
Method Detail

getSource

public Object getSource()
Gets the source of the configuration which resulted in this error message.


getSourceString

public String getSourceString()
Returns a string representation of the source object.


getMessage

public String getMessage()
Gets the error message text.


toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright 2007 Google Inc. All Rights Reserved.