saker.build Documentation TaskDoc JavaDoc Packages
public enum SakerLog.CommonExceptionFormat implements ExceptionFormat
Common ExceptionFormat implementation enumeration.
Enumeration constants
Compacted exception format that skips the frames which have their classes under the package saker.build and doesn't print the skipped frames count.
Exception format for displaying everything, including script and all stack trace.
Exception format that only includes Java stack traces, but no script traces.
Exception format that doesn't include any trace information only the exception headers.
Exception format simplar to COMPACT, but displays the skipped frame count.
Exception format that only includes script traces, but no Java stack traces.
Fields
public static final ExceptionFormat
The default format to display the exceptions in.
Methods
public boolean
Checks if the specified stack trace element should be included in the displayed stack trace.
public boolean
Checks if the script trace should be included in the displayed exception trace.
public boolean
Checks if a count line should be displayed in the place of skipped stack trace elements.
public static CommonExceptionFormat
Returns the enum constant of this type with the specified name.
public static CommonExceptionFormat[]
Returns an array containing the constants of this enum type, in the order they are declared.
Compacted exception format that skips the frames which have their classes under the package saker.build and doesn't print the skipped frames count.
Exception format for displaying everything, including script and all stack trace.
Exception format that only includes Java stack traces, but no script traces.
saker.build 0.8.11
Exception format that doesn't include any trace information only the exception headers.
saker.build 0.8.16
Exception format simplar to COMPACT, but displays the skipped frame count.
Exception format that only includes script traces, but no Java stack traces.
saker.build 0.8.11
public static final ExceptionFormat DEFAULT_FORMAT
The default format to display the exceptions in.

It is COMPACT by default.

The value is configurable using the PropertyNames.PROPERTY_DEFAULT_EXCEPTION_FORMAT system property.

public abstract boolean includeStackTraceElement(StackTraceElement elem)
Overridden from: ExceptionFormat
Checks if the specified stack trace element should be included in the displayed stack trace.
elemThe stack trace element.
true to include it in the printed stack trace.
public boolean isIncludeScriptTrace()
Overridden from: ExceptionFormat
Checks if the script trace should be included in the displayed exception trace.

The default implementation returns true.

true to print the script trace.
public boolean isIncludeSkippedCount()
Overridden from: ExceptionFormat
Checks if a count line should be displayed in the place of skipped stack trace elements.
true to print a skip count.
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
IllegalArgumentExceptionIf this enum type has no constant with the specified name.
NullPointerExceptionIf the argument is null.
The enum constant with the specified name.
public static CommonExceptionFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CommonExceptionFormat c : CommonExceptionFormat.values())
    System.out.println(c);
An array containing the constants of this enum type, in the order they are declared.