public class HumanReadableExceptionAugmentor extends Object
Constructor and Description |
---|
HumanReadableExceptionAugmentor(Map<Pattern,String> augmentations)
Create an instance of
HumanReadableExceptionAugmentor |
Modifier and Type | Method and Description |
---|---|
String |
getAugmentedError(String humanReadableErrorMessage)
Adds messages to the end of an existing error message based on regular expressions provided in
.buckconfig.
|
public HumanReadableExceptionAugmentor(Map<Pattern,String> augmentations)
HumanReadableExceptionAugmentor
augmentations
- A mapping of regexes to the replacement strings to append to the end of
error messagespublic String getAugmentedError(String humanReadableErrorMessage)
If replacement fails (due to a configuration error, such as invalid regex), then a warning will be added to the returned message