docs: function CustomError(msg) {
      BaseError.call(this);
      Error.captureStackTrace(this, arguments.callee);
      this.message = msg || defaultMessage || 'An error occurred';
      this.name = name;
      this.code = code;
    }