Runtime exception for "functional" error. It aims to be displayed to end-users, without any technical information
like stack traces.
It's handling depends on the versions of the sonar-batch and sonar-runner. sonar-runner 2.4 will only show the
message associated with this exception.
Starting from sonar-batch 5.3, this is handled in the batch side, and the main goal is to hide all wrappers of this
exception. If this exception is created without cause, then only the message associated with this exception is shown;
otherwise, its causes are also shown.
Previous combinations of sonar-batch/sonar-runner log all stack trace.
Message should be clear and complete. Keep in mind that context might not be added to the exception.
Names of processed resource and decorator are for example not automatically added when throwing
MessageException
from
Decorator
.