# All files / src/js Relude_Js_Exn.bs.js

57.14% Statements 8/14
0% Branches 0/2
25% Functions 1/4
63.64% Lines 7/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23

    16x
    16x

    16x

    16x

    16x
    16x
    16x

     'use strict';

    var Curry = require("bs-platform/lib/js/curry.js");
    var Js_exn = require("bs-platform/lib/js/js_exn.js");

    var make = ( function(message) { return new Error(message); } );

    var $$throw = ( function(message) { throw new Error(message); } );

    function unsafeFromExn(exn) {
      var makeUnknownJsExn = ( function(exn) { return new Error("Unexpected error: " + exn); } );
      if (exn[0] === Js_exn.$$Error) {
        return exn[1];
      } else {
        return Curry._1(makeUnknownJsExn, exn);
      }
    }

    exports.make = make;
    exports.$$throw = $$throw;
    exports.unsafeFromExn = unsafeFromExn;
    /* make Not a pure module */