All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aventstack.extentreports.model.ExceptionInfo Maven / Gradle / Ivy

There is a newer version: 5.1.2
Show newest version
package com.aventstack.extentreports.model;

import java.io.Serializable;

public class ExceptionInfo implements Serializable {

    private static final long serialVersionUID = 2672123037706464734L;

    private String exceptionName;
    private String stackTrace;
    private Throwable t;
    
    // exception-name
    public String getExceptionName() { return exceptionName; }
    
    public void setExceptionName(String exceptionName) { this.exceptionName = exceptionName; }

    // stack-trace
    public String getStackTrace() { return stackTrace; }
    
    public void setStackTrace(String stackTrace) {
        this.stackTrace = "
" + stackTrace + "
"; if (stackTrace.contains(">") || stackTrace.contains("<")) this.stackTrace = ""; } // exception public void setException(Throwable t) { this.t = t; } public Throwable getException() { return t; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy