destroyedException

Creates an IllegalStateException with a default message of

{this::class.simpleName}.isDestroyed[true]

If simpleName returns null (e.g. Anonymous Object), then a default of UnknownClass will be used.

Parameters

namePrefix

if not empty, message will be prefixed with the declared namePrefix and a . character.