shadow:standard

Exception CastException

Parent class

shadow:standard@Exception

exception CastException

Exception CastException is thrown when one type is cast to another incompatible type.

Create Summary

Modifiers Return Types Method and Description
public () create()

Creates a CastException with no message.

public () create(Class source, Class destination)

Creates a CastException stating the the source class is not a subtype of the destination class.

public () create(String message)

Creates a CastException with a message explaining why the cast is incompatible.

Destroy Summary

Modifiers Return Types Method and Description
public () destroy()

Method Summary

Modifiers Return Types Method and Description
public readonly (CastException) copy(AddressMap addresses)

Create Detail

create

public create() => ()

Creates a CastException with no message.

create

public create(Class source, Class destination) => ()

Creates a CastException stating the the source class is not a subtype of the destination class.

Parameters

source - source class

destination - destination class

create

public create(String message) => ()

Creates a CastException with a message explaining why the cast is incompatible.

Parameters

message - message explaining why the cast is incompatible

Destroy Detail

destroy

public destroy() => ()

Method Detail

copy

public readonly copy(AddressMap addresses) => (CastException)