Class JobError

    • Method Detail

      • code

        public final Code code()

        The code for the job error.

        If the service returns an enum value that is not available in the current SDK version, code will return Code.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from codeAsString().

        Returns:
        The code for the job error.
        See Also:
        Code
      • codeAsString

        public final String codeAsString()

        The code for the job error.

        If the service returns an enum value that is not available in the current SDK version, code will return Code.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from codeAsString().

        Returns:
        The code for the job error.
        See Also:
        Code
      • details

        public final Details details()

        The details about the job error.

        Returns:
        The details about the job error.
      • limitValue

        public final Double limitValue()

        The value of the exceeded limit.

        Returns:
        The value of the exceeded limit.
      • message

        public final String message()

        The message related to the job error.

        Returns:
        The message related to the job error.
      • resourceId

        public final String resourceId()

        The unique identifier for the resource related to the error.

        Returns:
        The unique identifier for the resource related to the error.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)