Sha256: c031285095c43a7b1c609ab9366c29734ac7eaface822240132e6045f702a0ca
Contents?: true
Size: 311 Bytes
Versions: 2
Compression:
Stored size: 311 Bytes
Contents
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.2.0 | lib/translator_text/exceptions.rb |
translator-text-0.1.0 | lib/translator_text/exceptions.rb |