Class: ExpressionNotCallableError
errors.ExpressionNotCallableError
Error that is thrown whenever an expression is called that is not a function or a variable storing a function.
Since
0.10.0
Hierarchy
-
↳
ExpressionNotCallableError
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new ExpressionNotCallableError(type
)
Parameters
Name | Type |
---|---|
type |
string |
Overrides
Defined in
kipper/core/src/errors.ts:666
Properties
tracebackData
• tracebackData: TracebackMetadata
The traceback metadata for this error. It contains the line and column of the error, the path to the file, the line of code that caused the error, and the token stream (source code) of the program.
Since
0.3.0
Inherited from
Defined in
kipper/core/src/errors.ts:56
Accessors
col
• get
col(): undefined
| number
Returns the column where the error occurred.
Since
0.4.0
Returns
undefined
| number
Inherited from
TypeError.col
Defined in
kipper/core/src/errors.ts:147
filePath
• get
filePath(): undefined
| string
The path to the file where the error occurred.
Since
0.4.0
Returns
undefined
| string
Inherited from
TypeError.filePath
Defined in
kipper/core/src/errors.ts:155
line
• get
line(): undefined
| number
Returns the line where the error occurred.
Since
0.4.0
Returns
undefined
| number
Inherited from
TypeError.line
Defined in
kipper/core/src/errors.ts:139
programCtx
• get
programCtx(): undefined
| KipperProgramContext
Returns the program ctx containing the metadata of the program compilation in which the error occurred.
Since
0.10.2
Returns
undefined
| KipperProgramContext
Inherited from
TypeError.programCtx
Defined in
kipper/core/src/errors.ts:178
tokenSrc
• get
tokenSrc(): undefined
| string
Returns the token source where the error occurred.
Since
0.4.0
Returns
undefined
| string
Inherited from
TypeError.tokenSrc
Defined in
kipper/core/src/errors.ts:163
Methods
getTraceback
▸ getTraceback(): string
Get the traceback of this item.
Note
The metadata in this traceback should be set using setTracebackData.
Since
0.3.0
Returns
string
Inherited from
Defined in
kipper/core/src/errors.ts:84
setTracebackData
▸ setTracebackData(traceback
): void
Update traceback context data that are associated with this error.
Since
0.3.0
Parameters
Name | Type | Description |
---|---|---|
traceback |
TracebackMetadata |
The traceback data. |
Returns
void
Inherited from
Defined in
kipper/core/src/errors.ts:75