Class Cause

java.lang.Object
com.amazonaws.xray.entities.Cause

public class Cause extends Object
A representation of what issues caused this (sub)segment to include a failure / error. Can include exceptions or references to other exceptions.
  • Constructor Details

    • Cause

      public Cause()
  • Method Details

    • getWorkingDirectory

      public @Nullable String getWorkingDirectory()
      Returns:
      the workingDirectory
    • setWorkingDirectory

      public void setWorkingDirectory(@Nullable String workingDirectory)
      Parameters:
      workingDirectory - the workingDirectory to set
    • getId

      public @Nullable String getId()
      Returns:
      the id
    • setId

      public void setId(String id)
      Parameters:
      id - the id to set
    • getMessage

      public @Nullable String getMessage()
      Returns:
      the message
    • setMessage

      public void setMessage(String message)
      Parameters:
      message - the message to set
    • getPaths

      public @Nullable Collection<String> getPaths()
      Returns:
      the paths
    • setPaths

      public void setPaths(Collection<String> paths)
      Parameters:
      paths - the paths to set
    • getExceptions

      public List<ThrowableDescription> getExceptions()
      Returns:
      the exceptions
    • addException

      public void addException(ThrowableDescription descriptor)
    • addExceptions

      public void addExceptions(List<ThrowableDescription> descriptors)