Package com.amazonaws.xray.entities
Class Cause
- java.lang.Object
-
- com.amazonaws.xray.entities.Cause
-
public class Cause extends java.lang.Object
A representation of what issues caused this (sub)segment to include a failure / error. Can include exceptions or references to other exceptions.
-
-
Constructor Summary
Constructors Constructor Description Cause()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addException(ThrowableDescription descriptor)
void
addExceptions(java.util.List<ThrowableDescription> descriptors)
java.util.List<ThrowableDescription>
getExceptions()
@Nullable java.lang.String
getId()
@Nullable java.lang.String
getMessage()
@Nullable java.util.Collection<java.lang.String>
getPaths()
@Nullable java.lang.String
getWorkingDirectory()
void
setId(java.lang.String id)
void
setMessage(java.lang.String message)
void
setPaths(java.util.Collection<java.lang.String> paths)
void
setWorkingDirectory(@Nullable java.lang.String workingDirectory)
-
-
-
Method Detail
-
getWorkingDirectory
public @Nullable java.lang.String getWorkingDirectory()
- Returns:
- the workingDirectory
-
setWorkingDirectory
public void setWorkingDirectory(@Nullable java.lang.String workingDirectory)
- Parameters:
workingDirectory
- the workingDirectory to set
-
getId
public @Nullable java.lang.String getId()
- Returns:
- the id
-
setId
public void setId(java.lang.String id)
- Parameters:
id
- the id to set
-
getMessage
public @Nullable java.lang.String getMessage()
- Returns:
- the message
-
setMessage
public void setMessage(java.lang.String message)
- Parameters:
message
- the message to set
-
getPaths
public @Nullable java.util.Collection<java.lang.String> getPaths()
- Returns:
- the paths
-
setPaths
public void setPaths(java.util.Collection<java.lang.String> paths)
- Parameters:
paths
- the paths to set
-
getExceptions
public java.util.List<ThrowableDescription> getExceptions()
- Returns:
- the exceptions
-
addException
public void addException(ThrowableDescription descriptor)
-
addExceptions
public void addExceptions(java.util.List<ThrowableDescription> descriptors)
-
-