Constructor and Description |
---|
ThrowableCause(String type,
String message)
Constructs a cause based on the give
type and message . |
ThrowableCause(Throwable throwable)
Construct a cause based on the given
throwable . |
public ThrowableCause(Throwable throwable)
throwable
. Uses the fully qualified class name as the
type
and the Throwable.getMessage()
as the message
.throwable
- The throwable to base this cause on.public String type()
Cause
type
can, for example, reflect the fully qualified class
name of a Throwable
.public String message()
Cause
message()
can, for example, reflect the message of a
Throwable
.Copyright © 2010–2023. All rights reserved.