public final class ExceptionEvent extends com.streamscape.sdo.event.AbstractMutableEvent implements EventDatagram, ExceptionEventDatagram
Title: Structured Data Objects: Exception Event
Description: A fabric exception event used to convey an error.
Exception event contains error code, severity and error message fields. It can be used for sending
exceptions from one Fabric component to another. Note that this is a general object for conveying
application exceptions. It has no special capability, unlike SDO exception object. For throwable
data objects that may be raises as Exceptions see ExceptionDatagramFactory
.
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_EVENT_ID |
SEMANTIC_TYPE_NAME
SEMANTIC_TYPE_NAME
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
getErrorCode()
Returns the error code of this exception event.
|
java.lang.String |
getErrorCodeAsString()
Returns the error code of this exception event as string.
|
java.lang.String |
getErrorMessage()
Returns the error message of this exception event.
|
byte[] |
getEventSink()
Returns the event sink address of this exception as a byte array.
|
Severity |
getSeverity()
Returns the severity of this exception event.
|
void |
setErrorCode(int code)
Sets the error code for this exception event.
|
void |
setErrorMessage(java.lang.String errorMessage)
Sets the error message of this exception event.
|
void |
setEventSink(byte[] eventSink)
Sets the event sink address of this exception as a byte array.
|
void |
setSeverity(Severity severity)
Sets the severity for this exception event.
|
addAnnotation, clearEventProperties, protect, removeAnnotation, removeEventProperty, resetReplyTo, setCorrelationId, setCorrelationIdAsBytes, setDurable, setEventBigDecimalProperty, setEventBigDecimalProperty, setEventBooleanProperty, setEventByteProperty, setEventDoubleProperty, setEventExpiration, setEventFloatProperty, setEventGroupId, setEventIntProperty, setEventKey, setEventLongProperty, setEventObjectProperty, setEventShortProperty, setEventStringProperty, setFinal, setForwardTo, setReplyTo, setSecurityAssertionToken, setSecurityAssertionTokenAsBytes, unprotect
canConvertEventProperty, clone, existsEventProperty, getAnnotatedProperties, getAnnotation, getCorrelationId, getCorrelationIdAsBytes, getDurable, getEventBigDecimalProperty, getEventBooleanProperty, getEventByteProperty, getEventDoubleProperty, getEventExpiration, getEventFloatProperty, getEventGroupId, getEventId, getEventIntProperty, getEventKey, getEventLongProperty, getEventObjectProperty, getEventPropertyNames, getEventPropertyType, getEventShortProperty, getEventSource, getEventStringProperty, getForwardTo, getPermissions, getReadAccess, getReplyTo, getSecurityAssertionToken, getSecurityAssertionTokenAsBytes, getTimestamp, getTransmitAccess, getWriteAccess, hasAnnotatedProperties, hasSuitableAnnotationType, isProtected
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAnnotation, canConvertEventProperty, clearEventProperties, existsEventProperty, getAnnotatedProperties, getAnnotation, getCorrelationId, getCorrelationIdAsBytes, getEventBigDecimalProperty, getEventBooleanProperty, getEventByteProperty, getEventDoubleProperty, getEventExpiration, getEventFloatProperty, getEventIntProperty, getEventLongProperty, getEventObjectProperty, getEventPropertyNames, getEventPropertyType, getEventShortProperty, getEventStringProperty, getForwardTo, getPermissions, getReadAccess, getReplyTo, getSecurityAssertionToken, getSecurityAssertionTokenAsBytes, getTransmitAccess, getWriteAccess, hasAnnotatedProperties, isProtected, protect, removeAnnotation, removeEventProperty, resetReplyTo, setCorrelationId, setCorrelationIdAsBytes, setDurable, setEventBigDecimalProperty, setEventBigDecimalProperty, setEventBooleanProperty, setEventByteProperty, setEventDoubleProperty, setEventExpiration, setEventFloatProperty, setEventGroupId, setEventIntProperty, setEventKey, setEventLongProperty, setEventObjectProperty, setEventShortProperty, setEventStringProperty, setFinal, setForwardTo, setReplyTo, setSecurityAssertionToken, setSecurityAssertionTokenAsBytes, unprotect
canConvertEventProperty, clearEventProperties, existsEventProperty, getCorrelationId, getCorrelationIdAsBytes, getEventBigDecimalProperty, getEventBooleanProperty, getEventByteProperty, getEventDoubleProperty, getEventFloatProperty, getEventIntProperty, getEventLongProperty, getEventObjectProperty, getEventPropertyNames, getEventPropertyType, getEventShortProperty, getEventStringProperty, getReplyTo, removeEventProperty, resetReplyTo, setCorrelationId, setCorrelationIdAsBytes, setEventBigDecimalProperty, setEventBigDecimalProperty, setEventBooleanProperty, setEventByteProperty, setEventDoubleProperty, setEventFloatProperty, setEventGroupId, setEventIntProperty, setEventKey, setEventLongProperty, setEventObjectProperty, setEventShortProperty, setEventStringProperty, setReplyTo
public static final java.lang.String DEFAULT_EVENT_ID
public void setErrorCode(int code)
setErrorCode
in interface ExceptionEventDatagram
code
- the error code to be set.SDORuntimeException
- if the event is coalesced (locked for editing).public int getErrorCode()
getErrorCode
in interface ExceptionEventDatagram
public java.lang.String getErrorCodeAsString()
getErrorCodeAsString
in interface ExceptionEventDatagram
public void setSeverity(Severity severity)
setSeverity
in interface ExceptionEventDatagram
severity
- the severity to be set.SDORuntimeException
- if the event is coalesced (locked for editing).public Severity getSeverity()
getSeverity
in interface ExceptionEventDatagram
public void setErrorMessage(java.lang.String errorMessage)
errorMessage
- the error message to be set.SDORuntimeException
- if the event is coalesced (locked for editing).public java.lang.String getErrorMessage()
getErrorMessage
in interface ExceptionEventDatagram
public byte[] getEventSink()
ExceptionEventDatagram
ImmutableEventDatagram.getEventSource()
) is set to event sink of the exception in the corresponding event listener).
See ExceptionDatagramFactory.createEvent(String, ImmutableEventDatagram)
.
getEventSink
in interface ExceptionEventDatagram
public void setEventSink(byte[] eventSink)
ExceptionEventDatagram
ExceptionEventDatagram.getEventSink()
.setEventSink
in interface ExceptionEventDatagram
eventSink
- the event sink to be set.public boolean equals(java.lang.Object other)
equals
in class com.streamscape.sdo.IAbstractDataEvent
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.