MissingType

dotty.tools.dotc.core.MissingType
class MissingType(pre: Type, name: Name)(using x$3: Context) extends TypeError

Attributes

Graph
Supertypes
class TypeError
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def toMessage(using Context): Message

Convert to message. This takes an additional Context, so that we use the context when the message is first produced, i.e. when the TypeError is handled. This makes a difference for CyclicErrors since we need to know the context where the completed symbol is referenced, but the creation context of the CyclicReference is the completion context for the symbol. See i2887b for a test case, where we want to see "recursive or overloaded method needs result type".

Convert to message. This takes an additional Context, so that we use the context when the message is first produced, i.e. when the TypeError is handled. This makes a difference for CyclicErrors since we need to know the context where the completed symbol is referenced, but the creation context of the CyclicReference is the completion context for the symbol. See i2887b for a test case, where we want to see "recursive or overloaded method needs result type".

Attributes

Definition Classes

Inherited methods

Attributes

Inherited from:
Throwable

Will the stack trace of this exception be filled in? This is expensive and only useful for debugging purposes.

Will the stack trace of this exception be filled in? This is expensive and only useful for debugging purposes.

Attributes

Inherited from:
TypeError
override def fillInStackTrace(): Throwable

Attributes

Definition Classes
Inherited from:
TypeError

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable
override def getMessage: String

Uses creationContext to produce the message

Uses creationContext to produce the message

Attributes

Definition Classes
Inherited from:
TypeError

Attributes

Inherited from:
Throwable
final def getSuppressed(): Array[Throwable]

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable
def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Inherited from:
Throwable