AbbreviateErrorTraces
scalus.sir.AbbreviateErrorTraces
class AbbreviateErrorTraces
Transforms error messages in SIR to abbreviated forms and collects a mapping of abbreviations to original messages.
This transformation helps reduce the size of error messages in the IR while maintaining traceability through a mapping of abbreviated forms to their original messages.
Attributes
- Example
-
// Input SIR containing: Error("Failed validation"), Error("Failed execution") // Transforms to: Error("FV"), Error("FE") // With mapping: Map("FV" -> "Failed validation", "FE" -> "Failed execution") val transformer = new AbbreviateErrorTraces val result = transformer.transformSIR(input) val abbrevMap = transformer.getAbbreviationMap
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article