exception CastException
Exception CastException
is thrown when one type is cast to another incompatible type.
Modifiers | Return Types | Method and Description |
---|---|---|
public |
() |
create() Creates a |
public |
() |
create(Class source, Class destination) Creates a |
public |
() |
create(String message) Creates a |
Modifiers | Return Types | Method and Description |
---|---|---|
public |
() |
destroy() |
Modifiers | Return Types | Method and Description |
---|---|---|
public readonly |
(CastException) |
copy(AddressMap addresses) |
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.
source
- source class
destination
- destination class
public create(String message) => ()
Creates a CastException
with a message explaining why the cast is incompatible.
message
- message explaining why the cast is incompatible
public destroy() => ()
public readonly copy(AddressMap addresses) => (CastException)