package server-reason-react

  1. Overview
  2. Docs
Rendering React components on the server natively

Install

dune-project
 Dependency

Authors

Maintainers

Sources

server-reason-react-0.5.1.tbz
sha256=3972f64a3ec22b120b40137f74e7862629b2164e5bbf8b85489d4c7b8bc13288
sha512=24a52537c091c4b278ea5e468aa6786378f8b559ed2128e824b6f84f26c283856a30e7ef01aab6101087bd53b9bdc2ecd8152c00db10bccff67221b9c67318a0

doc/server-reason-react.js/Js/Exn/index.html

Module Js.ExnSource

Sourcetype t
Sourcetype exn +=
  1. | Error of string
  2. | EvalError of string
  3. | RangeError of string
  4. | ReferenceError of string
  5. | SyntaxError of string
  6. | TypeError of string
  7. | UriError of string
Sourceval asJsExn : exn -> t option

Returns Some for the JS-style exceptions raised by the raise* functions below, None for any other OCaml exception, like Melange returns None for non-JS exceptions.

Sourceval stack : t -> string option

Always None: native exceptions do not capture a JS-style stack trace.

Sourceval message : t -> string option
Sourceval name : t -> string option
Sourceval fileName : t -> string option

Always None: native exceptions do not carry a file name.

Sourceval anyToExnInternal : 'a -> 'b
  • alert not_implemented is not implemented in native under server-reason-react.js
Sourceval isCamlExceptionOrOpenVariant : 'a -> 'b
  • alert not_implemented is not implemented in native under server-reason-react.js
Sourceval raiseError : string -> 'a
Sourceval raiseEvalError : string -> 'a
Sourceval raiseRangeError : string -> 'a
Sourceval raiseReferenceError : string -> 'a
Sourceval raiseSyntaxError : string -> 'a
Sourceval raiseTypeError : string -> 'a
Sourceval raiseUriError : string -> 'a