Sha256: eee19483540f75e84913b994824d4b3fbbbfb395ad12612591ce35b7fe77d133

Contents?: true

Size: 437 Bytes

Versions: 10

Compression:

Stored size: 437 Bytes

Contents

module TinyMCE
  # Setup a couple of Exception classes that we use later on
  class TinyMCEInvalidOption < Exception
    def self.invalid_option(option)
      new "Invalid option #{option} passed to tinymce"
    end
  end

  class TinyMCEInvalidOptionType < Exception
    def self.invalid_type_of(value, parameters={})
      new "Invalid value of type #{value.class} passed for TinyMCE option #{parameters[:for].to_s}"
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
community_engine-2.0.0.beta3 vendor/plugins/tiny_mce/lib/tiny_mce/exceptions.rb
community_engine-2.0.0.beta2 vendor/plugins/tiny_mce/lib/tiny_mce/exceptions.rb
community_engine-2.0.0.beta1 vendor/plugins/tiny_mce/lib/tiny_mce/exceptions.rb
tiny_mce-0.1.8 lib/tiny_mce/exceptions.rb
tiny_mce-0.1.7 lib/tiny_mce/exceptions.rb
runtastic-tiny_mce-0.1.5 lib/tiny_mce/exceptions.rb
runtastic-tiny_mce-0.1.5.pre lib/tiny_mce/exceptions.rb
tiny_mce-0.1.4 lib/tiny_mce/exceptions.rb
tiny_mce-0.1.3 lib/tiny_mce/exceptions.rb
tiny_mce-0.1.2 lib/tiny_mce/exceptions.rb