public class ExceptionHolder extends Object implements Serializable
Constructor and Description |
---|
ExceptionHolder(Exception exception)
Holds the given exception
|
Modifier and Type | Method and Description |
---|---|
Exception |
getException()
Gets the held exception
|
String |
getExceptionStack()
Gets the held exception stack trace using
Throwable.printStackTrace() . |
public ExceptionHolder(Exception exception)
exception
- the exception to hold.public Exception getException()
public String getExceptionStack()
Throwable.printStackTrace()
.Copyright © 2000–2020 Apache Software Foundation. All rights reserved.