code: function FormatError(func, msg, value) {
  
          this.name = 'FormatError';
          this.message = new Formatter()(msg, value);
          if (Error.captureStackTrace) {
              Error.captureStackTrace(this, func);
          }
  
      }
docs: Custom Error Type