Factory

Factory: RangeError

Public factory for RangeError types. Java-style exceptions can be wrapped using the create method, or a string message and cause can be provided, a-la Java exceptions.

Functions

Link copied to clipboard
open override fun create(error: Throwable): RangeError

Create a JavaScript-environment error of type T (an AbstractJsException) which wraps the provided Throwable. Any non-private fields and information on the provided Throwable will be included with the JS error.

open override fun create(message: String, cause: Throwable?): RangeError

Create a JavaScript-environment error of type T (an AbstractJsException) which wraps the provided message string and optional Throwable. Any non-private fields and information on the provided Throwable, if present, will be included with the JS error.