TypeError
| Module | ejs |
| Namespace | intrinsic |
| Definition | dynamic class TypeError |
| Inheritance | TypeError Error Object |
Type error exception class.
Thrown when a type casting or creation operation fails, e.g. when an operand cannot be cast to a type that allows completion of a statement or when a type cannot be found for object creation or when an object cannot be instantiated given the values passed into "new".
Properties
| Qualifiers | Property | Type | Description |
|---|---|---|---|
| No properties defined | |||
TypeError Methods
| Qualifiers | Method |
|---|---|
| TypeError(message: String) | |
| TypeError constructor. |
Method Detail
TypeError(message: String)
TypeError constructor.
- Parameters
message: String Message to use when defining the Error.message property