Class ThrowableTextualizer
- java.lang.Object
-
- org.pipecraft.infra.monitoring.sampling.ThrowableTextualizer
-
- All Implemented Interfaces:
SampleTextualizer<Throwable>
public class ThrowableTextualizer extends Object implements SampleTextualizer<Throwable>
A sample textualizer for throwable objects. Displays the full stack trace and the message.- Author:
- Eyal Schneider
-
-
Constructor Summary
Constructors Constructor Description ThrowableTextualizer()
-
-
-
Method Detail
-
toText
public String toText(Throwable e)
- Specified by:
toTextin interfaceSampleTextualizer<Throwable>- Parameters:
e- An item from the sample. Can be null.- Returns:
- The string representation of the sample item
-
-