Class NexusOperationFailure

  • All Implemented Interfaces:
    java.io.Serializable

    public final class NexusOperationFailure
    extends TemporalFailure
    Contains information about a Nexus operation failure. Always contains the original reason for the failure as its cause. For example if a Nexus operation timed out the cause is TimeoutFailure.

    This exception is only expected to be thrown by the Temporal SDK.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      NexusOperationFailure​(java.lang.String message, long scheduledEventId, java.lang.String endpoint, java.lang.String service, java.lang.String operation, java.lang.String operationToken, java.lang.Throwable cause)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getEndpoint()  
      static java.lang.String getMessage​(java.lang.String originalMessage, long scheduledEventId, java.lang.String endpoint, java.lang.String service, java.lang.String operation, java.lang.String operationToken)  
      java.lang.String getOperation()  
      java.lang.String getOperationToken()  
      long getScheduledEventId()  
      java.lang.String getService()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NexusOperationFailure

        public NexusOperationFailure​(java.lang.String message,
                                     long scheduledEventId,
                                     java.lang.String endpoint,
                                     java.lang.String service,
                                     java.lang.String operation,
                                     java.lang.String operationToken,
                                     java.lang.Throwable cause)
    • Method Detail

      • getMessage

        public static java.lang.String getMessage​(java.lang.String originalMessage,
                                                  long scheduledEventId,
                                                  java.lang.String endpoint,
                                                  java.lang.String service,
                                                  java.lang.String operation,
                                                  java.lang.String operationToken)
      • getScheduledEventId

        public long getScheduledEventId()
      • getEndpoint

        public java.lang.String getEndpoint()
      • getService

        public java.lang.String getService()
      • getOperation

        public java.lang.String getOperation()
      • getOperationToken

        public java.lang.String getOperationToken()