Factory

Factory: ValueError

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

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

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

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?): ValueError

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.

Link copied to clipboard
open override fun newInstance(vararg arguments: Value?): Any