Dotty Documentation

0.5.0-bin-SNAPSHOT

class MessageContainer
extends Exception with Diagnostic

[-] Constructors

MessageContainer ( msgFn: => Message , pos: SourcePosition , level: Int )

[-] Members

[+] val level : Int
[+] private val msgFn : Message
[+] private var myContained : Message
[+] private var myIsNonSensical : Boolean
[+] private var myMsg : String
[+] val pos : SourcePosition
[+] def contained ( ) : Message

This function forces the contained message and returns it

[+] override def getMessage ( ) : String
[+] def isNonSensical : Boolean

A message is non-sensical if it contains references to tags. Such tags are inserted by the error diagnostic framework if a message contains references to internally generated error types. Normally we want to suppress error messages referring to types like this because they look weird and are normally follow-up errors to something that was diagnosed before.

[+] def message : String

The message to report

[+] override def position : Optional [ SourcePosition ]
[+] override def toString : String