package saker.build.runtime.execution
Common ExceptionFormat implementation enumeration.
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. |
public static final ExceptionFormat | The default format to display the exceptions in. |
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[] | values() 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 that only includes script traces, but no Java stack traces.
saker.build 0.8.11
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.
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.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.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.
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.