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 holded exception
|
String |
getExceptionStack()
Gets the holded exception stacktrace using
Throwable.printStackTrace() . |
public ExceptionHolder(Exception exception)
exception
- the exception to hold.public Exception getException()
public String getExceptionStack()
Throwable.printStackTrace()
.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.