{"size": 2434, "ext": "js", "max_stars_repo_path": "server/services/response/errortypes.js", "max_stars_repo_name": "joshuaquek/QuickStack", "max_stars_repo_stars_event_min_datetime": "2018-06-07T08:31:51.000Z", "max_stars_repo_stars_event_max_datetime": "2018-12-19T04:19:49.000Z", "max_issues_repo_path": "server/services/response/errortypes.js", "max_issues_repo_name": "joshuaquek/QuickStack", "max_issues_repo_issues_event_min_datetime": "2018-12-18T09:02:32.000Z", "max_issues_repo_issues_event_max_datetime": "2020-05-28T04:34:18.000Z", "max_forks_repo_path": "server/services/response/errortypes.js", "max_forks_repo_name": "joshuaquek/QuickStack", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 5, "max_issues_count": 24, "max_forks_count": null, "avg_line_length": 30.049382716, "max_line_length": 93, "alphanum_fraction": 0.6972062449}
// ------- UserNotFoundAuthError class -------
exports.UserNotFoundAuthError = class UserNotFoundAuthError extends Error {
  constructor (message) {
    super()
    this.name = this.constructor.name
    this.message = 'User does not exist.'
  }
}

// ------- PasswordIncorrectAuthError class -------
exports.PasswordIncorrectAuthError = class PasswordIncorrectAuthError extends Error {
  constructor (message) {
    super()
    this.name = this.constructor.name
    this.message = 'User exists but password is incorrect.'
  }
}

// ------- AccessTokenError Error class -------
exports.AccessTokenError = class AccessTokenError extends Error {
  constructor (message) {
    super()
    this.name = this.constructor.name
    this.message = 'Access token is not found or invalid.'
  }
}

// ------- AccessTokenError Error class -------
exports.NotFoundError = class NotFoundError extends Error {
  constructor (message) {
    super()
    this.name = this.constructor.name
    this.message = 'API endpoint with specified HTTP method does not exist.'
  }
}

// ------- AccessTokenError Error class -------
exports.UnderConstructionError = class UnderConstructionError extends Error {
  constructor (message) {
    super()
    this.name = this.constructor.name
    this.message = 'API endpoint exists but is still under construction.'
  }
}

// ------- AccessTokenError Error class -------
exports.PostgresInitialConnectionError = class PostgresInitialConnectionError extends Error {
  constructor (message) {
    super()
    this.name = this.constructor.name
    this.message = 'Initial Postgres connection has failed to be established.'
  }
}

// ------- AccessTokenError Error class -------
exports.PostgresQueryError = class PostgresQueryError extends Error {
  constructor (message) {
    super()
    this.name = this.constructor.name
    this.message = 'Internal Postgres query is malformed.'
  }
}

// ------- AccessTokenError Error class -------
exports.PostgresQueryTimeoutError = class PostgresQueryTimeoutError extends Error {
  constructor (message) {
    super()
    this.name = this.constructor.name
    this.message = 'Postgres query has timed out.'
  }
}

// ------- AccessTokenError Error class -------
exports.EmptyPostgresResultsetError = class EmptyPostgresResultsetError extends Error {
  constructor (message) {
    super()
    this.name = this.constructor.name
    this.message = 'Postgres resultset is empty.'
  }
}
