org.opensolaris.os.dtrace
Class ErrorEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.opensolaris.os.dtrace.ErrorEvent
All Implemented Interfaces:
java.io.Serializable

public class ErrorEvent
extends java.util.EventObject

Notification that DTrace has encountered an error.

See Also:
ConsumerListener.errorEncountered(ErrorEvent e), Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ErrorEvent(java.lang.Object source, Error dtraceError)
          Creates an errorEncountered() event that reports an error encountered in the native DTrace library during tracing.
 
Method Summary
 Error getError()
          Gets the error reported by DTrace.
 java.lang.String toString()
          Gets a string representation of this event useful for logging and not intended for display.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorEvent

public ErrorEvent(java.lang.Object source,
                  Error dtraceError)
Creates an errorEncountered() event that reports an error encountered in the native DTrace library during tracing.

Parameters:
source - the Consumer that is the source of this event
dtraceError - the error encountered by DTrace
Throws:
java.lang.NullPointerException - if the given error is null
Method Detail

getError

public Error getError()
Gets the error reported by DTrace.

Returns:
non-null error reported by DTrace

toString

public java.lang.String toString()
Gets a string representation of this event useful for logging and not intended for display. The exact details of the representation are unspecified and subject to change, but the following format may be regarded as typical:

 class-name[property1 = value1, property2 = value2]
 

Overrides:
toString in class java.util.EventObject