Sha256: a2f92ad0f4fdbb383b1ca5d80050b30936e8d332e17df5b7822d677f4668c2bf
Contents?: true
Size: 342 Bytes
Versions: 2
Compression:
Stored size: 342 Bytes
Contents
# frozen_string_literal: true module TranslatorText class Error < StandardError attr_reader :code, :message, :errors def initialize(code:, message:) @code = code @message = message end def to_s "#{message} (#{code})" end end class ServiceError < Error end class NetError < Error end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
translator-text-0.3.1 | lib/translator_text/exceptions.rb |
translator-text-0.3.0 | lib/translator_text/exceptions.rb |