Sha256: 5cc5141c779e8ec8ff1d0cd9799db7081481c0135e3cb0b508bca9b21926dee2

Contents?: true

Size: 459 Bytes

Versions: 12

Compression:

Stored size: 459 Bytes

Contents

module PageModels
  class ConfigurationError < StandardError
  end
    
  class ImplementationError < StandardError
    def initialize(page_model, method)
      super("#{page_model.class} must implement ##{method}.")
    end
  end
  
  class MissingPageModelError < StandardError
    def initialize(klass)
      super("The page model class for #{klass} has not yet been written. You will need to create 'class #{klass} < PageModels:: Base'")
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pagemodels-0.2.3 lib/page_models/errors.rb
pagemodels-0.2.2 lib/page_models/errors.rb
pagemodels-0.2.1 lib/page_models/errors.rb
pagemodels-0.2.0 lib/page_models/errors.rb
pagemodels-0.1.8 lib/page_models/errors.rb
pagemodels-0.1.7 lib/page_models/errors.rb
pagemodels-0.1.6 lib/page_models/errors.rb
pagemodels-0.1.5 lib/page_models/errors.rb
pagemodels-0.1.4 lib/page_models/errors.rb
pagemodels-0.1.3 lib/page_models/errors.rb
pagemodels-0.1.2 lib/page_models/errors.rb
pagemodels-0.1.1 lib/page_models/errors.rb