Sha256: b2ff461fb2bdc7ff5f9b68e93b1e28197221709129e649358caae2635aabc978

Contents?: true

Size: 1.53 KB

Versions: 49

Compression:

Stored size: 1.53 KB

Contents

module ActionController
  class ActionControllerError < StandardError #:nodoc:
  end

  class BadRequest < ActionControllerError #:nodoc:
    attr_reader :original_exception

    def initialize(type = nil, e = nil)
      return super() unless type && e

      super("Invalid #{type} parameters: #{e.message}")
      @original_exception = e
      set_backtrace e.backtrace
    end
  end

  class RenderError < ActionControllerError #:nodoc:
  end

  class RoutingError < ActionControllerError #:nodoc:
    attr_reader :failures
    def initialize(message, failures=[])
      super(message)
      @failures = failures
    end
  end

  class ActionController::UrlGenerationError < ActionControllerError #:nodoc:
  end

  class MethodNotAllowed < ActionControllerError #:nodoc:
    def initialize(*allowed_methods)
      super("Only #{allowed_methods.to_sentence(:locale => :en)} requests are allowed.")
    end
  end

  class NotImplemented < MethodNotAllowed #:nodoc:
  end

  class UnknownController < ActionControllerError #:nodoc:
  end

  class MissingFile < ActionControllerError #:nodoc:
  end

  class SessionOverflowError < ActionControllerError #:nodoc:
    DEFAULT_MESSAGE = 'Your session data is larger than the data column in which it is to be stored. You must increase the size of your data column if you intend to store large data.'

    def initialize(message = nil)
      super(message || DEFAULT_MESSAGE)
    end
  end

  class UnknownHttpMethod < ActionControllerError #:nodoc:
  end

  class UnknownFormat < ActionControllerError #:nodoc:
  end
end

Version data entries

49 entries across 48 versions & 8 rubygems

Version Path
actionpack-4.2.11.3 lib/action_controller/metal/exceptions.rb
actionpack-4.2.11.2 lib/action_controller/metal/exceptions.rb
actionpack-4.2.11.1 lib/action_controller/metal/exceptions.rb
actionpack-4.2.11 lib/action_controller/metal/exceptions.rb
actionpack-4.2.10 lib/action_controller/metal/exceptions.rb
actionpack-4.2.10.rc1 lib/action_controller/metal/exceptions.rb
actionpack-4.2.9 lib/action_controller/metal/exceptions.rb
actionpack-4.2.9.rc2 lib/action_controller/metal/exceptions.rb
actionpack-4.2.9.rc1 lib/action_controller/metal/exceptions.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/actionpack-4.2.8/lib/action_controller/metal/exceptions.rb
actionpack-4.2.8 lib/action_controller/metal/exceptions.rb
actionpack-4.2.8.rc1 lib/action_controller/metal/exceptions.rb
actionpack-4.2.7.1 lib/action_controller/metal/exceptions.rb
actionpack-4.2.7 lib/action_controller/metal/exceptions.rb
actionpack-4.2.7.rc1 lib/action_controller/metal/exceptions.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.6/lib/action_controller/metal/exceptions.rb
actionpack-4.2.6 lib/action_controller/metal/exceptions.rb
actionpack-4.2.6.rc1 lib/action_controller/metal/exceptions.rb
actionpack-4.2.5.2 lib/action_controller/metal/exceptions.rb
activejob-lock-0.0.2 rails/actionpack/lib/action_controller/metal/exceptions.rb