TypeError

Moduleejs
Definitiondynamic class TypeError
InheritanceTypeError inherit Error inherit Object
StabilityEvolving.

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

QualifiersPropertyTypeDescription
No properties defined

TypeError Methods

QualifiersMethod
TypeError(message: String = null)
 TypeError constructor.

Method Detail

public TypeError(message: String = null)

TypeError constructor.

Parameters
message: String Message to use when defining the Error.message property. [default: null]