Code coverage report for lib/error.js

Statements: 94.29% (33 / 35)      Branches: 100% (2 / 2)      Functions: 83.33% (10 / 12)      Lines: 94.29% (33 / 35)      Ignored: none     

All files » lib/ » error.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57  1   4     2     2     1           1       1 2216 2216 2216 2216   1 1 2072   1 1 1 142   1 1 1 1   1 1 1     1 1 1 1 1 1   1 1  
"use strict";
Object.defineProperties(exports, {
  ChessError: {get: function() {
      return ChessError;
    }},
  MobilityError: {get: function() {
      return MobilityError;
    }},
  CheckError: {get: function() {
      return CheckError;
    }},
  PromotionError: {get: function() {
      return PromotionError;
    }},
  ResultError: {get: function() {
      return ResultError;
    }},
  AmbiguityError: {get: function() {
      return AmbiguityError;
    }},
  __esModule: {value: true}
});
var ChessError = function ChessError(message, position) {
  Error.call(this);
  this.name = this.constructor.name;
  this.message = message != null ? message : this.name;
  this.position = position;
};
($traceurRuntime.createClass)(ChessError, {}, {}, Error);
var MobilityError = function MobilityError() {
  $traceurRuntime.defaultSuperCall(this, $MobilityError.prototype, arguments);
};
var $MobilityError = MobilityError;
($traceurRuntime.createClass)(MobilityError, {}, {}, ChessError);
var CheckError = function CheckError() {
  $traceurRuntime.defaultSuperCall(this, $CheckError.prototype, arguments);
};
var $CheckError = CheckError;
($traceurRuntime.createClass)(CheckError, {}, {}, ChessError);
var PromotionError = function PromotionError() {
  $traceurRuntime.defaultSuperCall(this, $PromotionError.prototype, arguments);
};
var $PromotionError = PromotionError;
($traceurRuntime.createClass)(PromotionError, {}, {}, ChessError);
var ResultError = function ResultError() {
  $traceurRuntime.defaultSuperCall(this, $ResultError.prototype, arguments);
};
var $ResultError = ResultError;
($traceurRuntime.createClass)(ResultError, {}, {}, ChessError);
var AmbiguityError = function AmbiguityError(rejection, candidates) {
  $traceurRuntime.superCall(this, $AmbiguityError.prototype, "constructor", [("Ambiguous notation: " + rejection)]);
  this.rejection = rejection;
  this.candidates = candidates;
};
var $AmbiguityError = AmbiguityError;
($traceurRuntime.createClass)(AmbiguityError, {}, {}, ChessError);