com.google.inject.spi
Class Message

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

public class Message
extends java.lang.Object

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

Author:
crazybob@google.com (Bob Lee)

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

Constructor Detail

Message

public Message(java.lang.Object source,
               java.lang.String message)

Message

public Message(java.lang.String message)
Method Detail

getSource

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


getSourceString

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


getMessage

public java.lang.String getMessage()
Gets the error message text.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


Copyright © {inceptionYear}-2008 null. All Rights Reserved.