Sha256: 4003ed670d89597e74af485dea4dcecc6c227096e94de13ebc2f74b5cbbe3552
Contents?: true
Size: 366 Bytes
Versions: 2
Compression:
Stored size: 366 Bytes
Contents
module Mortise class Error < StandardError end class BadRequestError < Error end class UnauthorizedError < Error end class InternalServerError < Error end class ConnectionTimeOutError < Error end ERRORS = { 400 => BadRequestError, 401 => UnauthorizedError, 500 => InternalServerError, 522 => ConnectionTimeOutError } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mortise-0.3.0 | lib/mortise/errors.rb |
mortise-0.2.0 | lib/mortise/errors.rb |