Class ExceptionReceivedEventArgs
- java.lang.Object
-
- com.microsoft.azure.eventprocessorhost.ExceptionReceivedEventArgs
-
public final class ExceptionReceivedEventArgs extends Object
Passed as an argument to the general exception handler that can be set via EventProcessorOptions.
-
-
Field Summary
Fields Modifier and Type Field Description static String
NO_ASSOCIATED_PARTITION
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAction()
See EventProcessorHostActionString for a list of possible values.Exception
getException()
Returns the exception that was thrown.String
getHostname()
Allows distinguishing the error source if multiple hosts in a single process.String
getPartitionId()
If the error is associated with a particular partition (for example, failed to open the event processor for the partition), the id of the partition.
-
-
-
Field Detail
-
NO_ASSOCIATED_PARTITION
public static final String NO_ASSOCIATED_PARTITION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHostname
public String getHostname()
Allows distinguishing the error source if multiple hosts in a single process.- Returns:
- The name of the host that experienced the exception.
-
getException
public Exception getException()
Returns the exception that was thrown.- Returns:
- The exception.
-
getAction
public String getAction()
See EventProcessorHostActionString for a list of possible values.- Returns:
- A short string that indicates what general activity threw the exception.
-
getPartitionId
public String getPartitionId()
If the error is associated with a particular partition (for example, failed to open the event processor for the partition), the id of the partition. Otherwise, NO_ASSOCIATED_PARTITION.- Returns:
- A partition id.
-
-