public final class Utils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static IPersistentMap |
DefaultSanitization |
static IPersistentMap |
NoopSanitization |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static IPersistentMap |
createSuppressionMap(java.lang.Boolean suppressData,
java.lang.Boolean suppressCause,
java.lang.Boolean suppressMessage,
java.lang.Boolean suppressStack,
java.lang.Boolean suppressRecursively)
Returns a suppression map suitable for consumption by recide's sanitization sledgehammer
tools.
|
static IPersistentMap |
getCurrentSanitizationLevel()
Returns the thread-local sanitization options in effect in the code's current context.
|
static java.lang.Throwable |
sanitize(java.lang.Throwable t)
Invokes recide.sanex/sanitize.
|
static java.lang.Throwable |
sanitize(java.lang.Throwable t,
IPersistentMap suppression)
Invokes recide.sanex/sanitize.
|
public static IPersistentMap NoopSanitization
public static IPersistentMap DefaultSanitization
public static IPersistentMap getCurrentSanitizationLevel()
public static IPersistentMap createSuppressionMap(java.lang.Boolean suppressData,
java.lang.Boolean suppressCause,
java.lang.Boolean suppressMessage,
java.lang.Boolean suppressStack,
java.lang.Boolean suppressRecursively)
suppressData - If true, this removes any ex-data outside of recide type information.suppressCause - If true, this removes the cause.suppressMessage - If true, this replaces the message with an empty String.suppressStack - If true, this replaces the stacktrace with an empty one.suppressRecursively - If true, suppress causes recursively.public static java.lang.Throwable sanitize(java.lang.Throwable t)
public static java.lang.Throwable sanitize(java.lang.Throwable t,
IPersistentMap suppression)
suppression - See createSuppressionMap.