EvaluationError

class EvaluationError: LogicError

The evaluation error occurs when some problem occurs in evaluating an arithmetic expression

Fields

Name Description
val type: Struct

The error type structure

val errorType: Type

The error type

Constructors

<init>

constructor(message: String?, cause: Throwable?, context: ExecutionContext, errorType: Type, extraData: Term?)

Parameters

Name Description
message: String?
cause: Throwable?
context: ExecutionContext
errorType: Type
extraData: Term?

<init>

constructor(message: String?, cause: Throwable?, contexts: Array<ExecutionContext>, errorType: Type, extraData: Term?)

The evaluation error occurs when some problem occurs in evaluating an arithmetic expression

Parameters

Name Description
message: String?

the detail message string.

cause: Throwable?

the cause of this exception.

contexts: Array<ExecutionContext>

a stack of contexts localising the exception

errorType: Type

The error type

extraData: Term?

The possible extra data to be carried with the error

Methods

updateContext

fun updateContext(newContext: ExecutionContext, index: Int): EvaluationError

Creates a new exception instance with the context with in position index updated to newContext. Subclasses should override this method and return the correct instance.

Parameters

Name Description
newContext: ExecutionContext
index: Int

ReturnValue

Name Description
EvaluationError

updateLastContext

fun updateLastContext(newContext: ExecutionContext): EvaluationError

Parameters

Name Description
newContext: ExecutionContext

ReturnValue

Name Description
EvaluationError

pushContext

fun pushContext(newContext: ExecutionContext): EvaluationError

Parameters

Name Description
newContext: ExecutionContext

ReturnValue

Name Description
EvaluationError

CompanionObject

EvaluationError

class EvaluationError: LogicError

The evaluation error occurs when some problem occurs in evaluating an arithmetic expression

Fields

Name Description
const typeFunctor: String

The evaluation error Struct functor