ClassCastException
Defined in: src/exceptions.ts:97
Thrown when a value has the wrong type for the operation: comparing values that are not mutually comparable
under natural ordering (e.g. a number and a string), or inserting a value that fails a Collections.checked*
wrapper’s type check.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ClassCastException(
message?):ClassCastException
Defined in: site/node_modules/typescript/lib/lib.es5.d.ts:1080
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”ClassCastException
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”message
Section titled “message”message:
string
Defined in: site/node_modules/typescript/lib/lib.es5.d.ts:1075
Inherited from
Section titled “Inherited from”name:
string='ClassCastException'
Defined in: src/exceptions.ts:99
Always 'ClassCastException'.
Overrides
Section titled “Overrides”stack?
Section titled “stack?”
optionalstack?:string
Defined in: site/node_modules/typescript/lib/lib.es5.d.ts:1076