Sha256: 38a36744d4ac8844eb5b17740b0e7b3241b22e5d7c1bf7033fe5dd6e7251bdf4

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

# Sc4ry module
# @note namespace
module Sc4ry

    # Sc4ry::Exceptions module
    # @note namespace
    module Exceptions

        # Exception use in {Sc4ry::Circuits} when running circuit {Sc4ry::Circuits::run} 
        class CircuitBreaked < StandardError
            def initialize(msg="Circuit just opened")
                super(msg)
              end
        
        end

        # Generic Exception use in {Sc4ry::Circuits} 
        class Sc4ryGenericError < StandardError
            def initialize(msg="")
                super(msg)
              end
        
        end

        # Exception use in {Sc4ry::Store} or/and {Sc4ry::Backend} on data string issues
        class Sc4ryBackendError < StandardError
            def initialize(msg="")
                super(msg)
              end
        
        end

        # Exception use in {Sc4ry::Notifiers} on notification issues
        class Sc4ryNotifierError < StandardError
            def initialize(msg="")
                super(msg)
              end
        
        end
        
        # Exception use in {Sc4ry::Circuits} on config management issues
        class ConfigError < StandardError
            def initialize(msg="")
                super(msg)
              end
        
        end

    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sc4ry-0.2.0 lib/sc4ry/exceptions.rb