TypeError

dotty.tools.dotc.core.TypeError
See theTypeError companion object
abstract class TypeError(using creationContext: Context) extends Exception

Attributes

Companion
object
Graph
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Abstract methods

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

Concrete methods

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

override def fillInStackTrace(): Throwable

Attributes

Definition Classes
override def getMessage: String

Uses creationContext to produce the message

Uses creationContext to produce the message

Attributes

Definition Classes

Inherited methods

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

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