Sha256: f21809beca084ea79cceae148cacc47dabdcb237650ae42b445c61952b55379d
Contents?: true
Size: 395 Bytes
Versions: 2
Compression:
Stored size: 395 Bytes
Contents
# frozen_string_literal: true module Rodbot class Error < StandardError def initialize(message, details=nil) @details = details super(message) end def detailed_message [message, @details].compact.join(': ') end end GeneratorError = Class.new(Error) PluginError = Class.new(Error) ServiceError = Class.new(Error) RelayError = Class.new(Error) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rodbot-0.5.1 | lib/rodbot/error.rb |
rodbot-0.5.0 | lib/rodbot/error.rb |