dotty.tools.dotc.reporting.diagnostic

Message

Related Docs: object Message | package diagnostic

abstract class Message extends AnyRef

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.

Self Type
Message
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Message
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Message(errorId: Int)

    errorId

    a unique number identifying the message, this will later be used to reference documentation online

Abstract Value Members

  1. abstract def explanation: String

    The explanation should provide a detailed description of why the error occurred and use examples from the user's own code to illustrate how to avoid these errors.

  2. abstract def kind: String

    The kind of the error message is something like "Syntax" or "Type Mismatch"

  3. abstract def msg: String

    The msg contains the diagnostic message e.g:

    The msg contains the diagnostic message e.g:

    > expected: String > found: Int

    This message wil be placed underneath the position given by the enclosing MessageContainer

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def deprecationWarning(pos: SourcePosition): DeprecationWarning

    Enclose this message in an DeprecationWarning container

  7. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  9. def error(pos: SourcePosition): Error

    Enclose this message in an Error container

  10. val errorId: Int

    a unique number identifying the message, this will later be used to reference documentation online

  11. def featureWarning(pos: SourcePosition): FeatureWarning

    Enclose this message in an FeatureWarning container

  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. def info(pos: SourcePosition): Info

    Enclose this message in an Info container

  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def mapMsg(f: (String) ⇒ String): Message { ... /* 3 definitions in type refinement */ }

    It is possible to map msg to add details, this is at the loss of precision since the type of the resulting Message won't be original extending class

    It is possible to map msg to add details, this is at the loss of precision since the type of the resulting Message won't be original extending class

    returns

    a Message with the mapped message

  18. def migrationWarning(pos: SourcePosition): MigrationWarning

    Enclose this message in an MigrationWarning container

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. def uncheckedWarning(pos: SourcePosition): UncheckedWarning

    Enclose this message in an UncheckedWarning container

  25. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def warning(pos: SourcePosition): Warning

    Enclose this message in an Warning container

Inherited from AnyRef

Inherited from Any

Ungrouped