Sha256: 8259a2bceb76cf10c8fcd4ee10ceb9d0f4ad6051ad0c0aaff77be033e7fd188c
Contents?: true
Size: 552 Bytes
Versions: 2
Compression:
Stored size: 552 Bytes
Contents
module Linguo module Errors # Custom error class for rescuing from all Linguo errors. class LinguoError < StandardError; end # Raised when Linguo API key is missed. class MissingApiKey < LinguoError; end # Raised when API endpoint returns error. class ApiError < LinguoError; end # Raised when API endpoint doesn't return the HTTP status code 200. class ApiConnectionError < LinguoError; end # Raised when API endpoint returns unexpected response. class UnexpectedApiException < LinguoError; end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
linguo-0.0.2 | lib/linguo/errors.rb |
linguo-0.0.1 | lib/linguo/errors.rb |