Package org.kiwiproject.base
Class KiwiThrowables.ThrowableInfo
- java.lang.Object
-
- org.kiwiproject.base.KiwiThrowables.ThrowableInfo
-
- Enclosing class:
- KiwiThrowables
@Immutable public static final class KiwiThrowables.ThrowableInfo extends Object
Immutable "struct" that contains information from aThrowableinstance.
-
-
Constructor Summary
Constructors Constructor Description ThrowableInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Throwable>getCause()Optional<String>getMessage()Optional<String>getStackTrace()Optional<String>getType()booleanhasMessage()static KiwiThrowables.ThrowableInfoof(Throwable throwable)Factory method
-
-
-
Method Detail
-
of
public static KiwiThrowables.ThrowableInfo of(Throwable throwable)
Factory method- Parameters:
throwable- original throwable- Returns:
- constructed instance
-
hasMessage
public boolean hasMessage()
-
-