org.bff.javampd.events
Class MPDErrorEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.bff.javampd.events.MPDErrorEvent
All Implemented Interfaces:
java.io.Serializable

public class MPDErrorEvent
extends java.util.EventObject

An event used to identify a MPD error.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MPDErrorEvent(java.lang.Object source)
          Creates a new instance of MPDErrorEvent
MPDErrorEvent(java.lang.Object source, java.lang.String msg)
          Creates a new instance of MPDErrorEvent
 
Method Summary
 java.lang.String getMsg()
          Returns the message attached to this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MPDErrorEvent

public MPDErrorEvent(java.lang.Object source)
Creates a new instance of MPDErrorEvent

Parameters:
source - the object on which the Event initially occurred

MPDErrorEvent

public MPDErrorEvent(java.lang.Object source,
                     java.lang.String msg)
Creates a new instance of MPDErrorEvent

Parameters:
msg - an optional message
source - the object on which the Event initially occurred
Method Detail

getMsg

public java.lang.String getMsg()
Returns the message attached to this event. If there is no message null is returned.

Returns:
the optional message