Sha256: 7320c74c44840322b20480b8d340fd079bbaa2e5267fe60889d990d6a29a2849
Contents?: true
Size: 600 Bytes
Versions: 33
Compression:
Stored size: 600 Bytes
Contents
const maxRetry = 3 class GitError extends Error { shouldRetry () { return false } } class GitConnectionError extends GitError { constructor (message) { super('A git connection error occurred') } shouldRetry (number) { return number < maxRetry } } class GitPathspecError extends GitError { constructor (message) { super('The git reference could not be found') } } class GitUnknownError extends GitError { constructor (message) { super('An unknown git error occurred') } } module.exports = { GitConnectionError, GitPathspecError, GitUnknownError, }
Version data entries
33 entries across 33 versions & 1 rubygems