RecursionOverflow

dotty.tools.dotc.core.RecursionOverflow
class RecursionOverflow(val op: String, details: => String, val previous: Throwable, val weight: Int)(using x$5: 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 fillInStackTrace(): Throwable

Attributes

Definition Classes

Attributes

Definition Classes
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

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
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

Concrete fields

val op: String
val weight: Int