AbstractJsException

sealed interface AbstractJsException

JavaScript: Abstract Exception

This sealed interface serves as the base type for all known JavaScript guest exception types (not counting user code which creates such types). Implementations or interfaces which extend this class implement core JavaScript exception types which are surfaced from intrinsics.

Inheritors

Types

Link copied to clipboard

All JavaScript exception intrinsics are expected to implement this interface on their companion object; this allows for dynamic extension/implementation of a given JS exception, based on an originating Java exception.