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 24 25 | 5x 5x 5x 4x 4x 4x 4x 4x 4x 4x | import * as _ from 'lodash'
import { IErrors } from '.'
import { SERVICE_UNAVAILABLE } from 'http-status-codes'
import { RateLimitDto } from '../models-dto/rate-limit/rate-limit.dto'
const message = 'Riot games api unavailable check: https://developer.riotgames.com/api-status/'
/**
* Not api key found
*/
export class ServiceUnavailable extends Error implements IErrors {
readonly status: number
readonly name = 'RiotUnavailable'
constructor (
public readonly rateLimits: RateLimitDto,
public readonly error: Error
) {
super(message)
this.status = SERVICE_UNAVAILABLE
this.error = error
Object.setPrototypeOf(this, ServiceUnavailable.prototype)
}
}
|