Class PhaseExecutionAttachment.ExceptionAttachment

java.lang.Object
org.jenkinsci.plugins.cloudstats.PhaseExecutionAttachment
org.jenkinsci.plugins.cloudstats.PhaseExecutionAttachment.ExceptionAttachment
All Implemented Interfaces:
Action, ModelObject, Serializable
Enclosing class:
PhaseExecutionAttachment

@ExportedBean public static final class PhaseExecutionAttachment.ExceptionAttachment extends PhaseExecutionAttachment
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getCause

      @Deprecated public Throwable getCause()
      Deprecated.
      Use #getText() instead.
    • getText

      @Exported @NonNull public String getText()
      Full stack trace of the exception.

      Exported over the remote API at the same Permission level as the Cloud Statistics management page (Jenkins.SYSTEM_READ), which already renders this information as HTML. No additional redaction is applied here because any caller who can reach /manage/cloud-stats/api/ can equally reach the attachment's own HTML page at the same permission level.

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getUrlName

      @NonNull public String getUrlName()
      Description copied from class: PhaseExecutionAttachment
      Url fragment (without slashes) to provide URL subspace for this attachment.
      Specified by:
      getUrlName in interface Action
      Overrides:
      getUrlName in class PhaseExecutionAttachment
      Returns:
      non-null, in case the attachment serves some more content. null otherwise.