JavaScriptCore.Exception.new
Description: Reference for JavaScriptCore.Exception.new

### Constructor

# JavaScriptCore Exceptionnew

#### Declaration [src]

    JSCException*
    jsc_exception_new (
      JSCContext* context,
      const char* message
    )

#### Description [src]

Create a new `JSCException` in `context` with `message`.

#### Parameters

`context`

  Type: `JSCContext`

  A `JSCContext`.

  The data is owned by the caller of the function.

`message`

  Type: `const char*`

  The error message.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `JSCException`

A new `JSCException`.

The caller of the function takes ownership of the data, and is responsible for freeing it.