Skip to content
Buy me a coffee

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.

new ClassCastException(message?): ClassCastException

Defined in: site/node_modules/typescript/lib/lib.es5.d.ts:1080

string

ClassCastException

RuntimeException.constructor

message: string

Defined in: site/node_modules/typescript/lib/lib.es5.d.ts:1075

RuntimeException.message


name: string = 'ClassCastException'

Defined in: src/exceptions.ts:99

Always 'ClassCastException'.

RuntimeException.name


optional stack?: string

Defined in: site/node_modules/typescript/lib/lib.es5.d.ts:1076

RuntimeException.stack