Sha256: a651326c092660802e018aad2b5c6c21658ef52a7ac9f0fcc31437f573a654fe

Contents?: true

Size: 506 Bytes

Versions: 7

Compression:

Stored size: 506 Bytes

Contents

require "i18n"

module Shamu

  module Services
    # A generic error class for problems with shamu services.
    class Error < Shamu::Error
      private

        def translation_scope
          super.dup.insert( 1, :services )
        end

    end

    # The service has included a module that requires some setup or
    # configuration but it hasn't been setup properly.
    class IncompleteSetupError < Error
      def initialize( message = :incomplete_setup )
        super
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shamu-0.0.9 lib/shamu/services/error.rb
shamu-0.0.8 lib/shamu/services/error.rb
shamu-0.0.7 lib/shamu/services/error.rb
shamu-0.0.5 lib/shamu/services/error.rb
shamu-0.0.4 lib/shamu/services/error.rb
shamu-0.0.3 lib/shamu/services/error.rb
shamu-0.0.2 lib/shamu/services/error.rb