Sha256: 12fd50c12bb318bea36f0a29ca8c9a61ed046e769161d72283283de2b8f19c95

Contents?: true

Size: 752 Bytes

Versions: 38

Compression:

Stored size: 752 Bytes

Contents

module Guilded
  module Exceptions
    
    class GuildedException < RuntimeError
      def initialize( msg="" )    #:nodoc:
        @msg = msg
      end
    end
    
    class IdMissing < GuildedException
      def initialize    #:nodoc:
        @msg = ":id for element must be present in the options hash"
      end
    end
    
    class DuplicateElementId < GuildedException
      def initialize( id='' )    #:nodoc:
        @msg = ":id #{id} for element is already in use on current page"
      end
    end
    
    class MissingConfiguration < GuildedException
      def initialize    #:nodoc:
        @msg = "There is no GUILDED_CONFIG instance.  Please load Guilded configuration with your apps initialization."
      end
    end
    
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
midas-guilded-0.0.4 lib/guilded/exceptions.rb
midas-guilded-0.0.5 lib/guilded/exceptions.rb
midas-guilded-0.0.6 lib/guilded/exceptions.rb
midas-guilded-0.0.7 lib/guilded/exceptions.rb
midas-guilded-0.0.8 lib/guilded/exceptions.rb
midas-guilded-0.0.9 lib/guilded/exceptions.rb
midas-guilded-0.1.0 lib/guilded/exceptions.rb
midas-guilded-0.1.1 lib/guilded/exceptions.rb
midas-guilded-0.1.2 lib/guilded/exceptions.rb
midas-guilded-0.1.3 lib/guilded/exceptions.rb
midas-guilded-0.1.4 lib/guilded/exceptions.rb
midas-guilded-0.1.8 lib/guilded/exceptions.rb
midas-guilded-0.1.9 lib/guilded/exceptions.rb
midas-guilded-0.2.0 lib/guilded/exceptions.rb
midas-guilded-0.2.1 lib/guilded/exceptions.rb
midas-guilded-0.2.3 lib/guilded/exceptions.rb
midas-guilded-0.2.4 lib/guilded/exceptions.rb
midas-guilded-0.2.5 lib/guilded/exceptions.rb
midas-guilded-0.2.6 lib/guilded/exceptions.rb
midas-guilded-0.2.7 lib/guilded/exceptions.rb