Enum Class LtsvStackTrace
- All Implemented Interfaces:
Serializable, Comparable<LtsvStackTrace>, Constable
How the core
ltsv encoder writes a throwable's stack trace.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic LtsvStackTraceReturns the enum constant of this class with the specified name.static LtsvStackTrace[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
INLINE
The default. The stack trace is thestacktracevalue, escaped like any other, so every event is one line. -
LINES
stacktrace:ends the event's line and each line of the stack trace follows on a line of its own, after a tab. This is no longer strict LTSV, but a line that starts with a tab is never an event: an empty first positional column is written as the reserved escape\e. A literal\evalue is escaped as\\e, so the two remain distinct. Removing the leading tab from continuation lines gives back the stack trace, with an exception's message escaped like any other value so it stays on its line.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-