Class ExceptionReceivedEventArgs


  • public final class ExceptionReceivedEventArgs
    extends Object
    Passed as an argument to the general exception handler that can be set via EventProcessorOptions.
    • 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.