An extended message keeps the contained message from being evaluated, while
allowing for extension for the msg
string
A Message
contains all semantic information necessary to easily
comprehend what caused the message to be logged.
A Message
contains all semantic information necessary to easily
comprehend what caused the message to be logged. Each message can be turned
into a MessageContainer
which contains the log level and can later be
consumed by a subclass of Reporter
. However, the error position is only
part of MessageContainer
, not Message
.
NOTE: you should not be persisting messages. Most messages take an implicit
Context
and these contexts weigh in at about 4mb per instance, as such
persisting these will result in a memory leak.
Instead use the persist
method to create an instance that does not keep a
reference to these contexts.
The fallback Message
containing no explanation and having no kind
The extractor for NoExplanation
can be used to check whether any error
lacks an explanation
An extended message keeps the contained message from being evaluated, while allowing for extension for the
msg
stringThis is useful when we need to add additional information to an existing message.