Sha256: b14cf8fa108ba577f42e13d3ad008d6b10b5ebee55ec79c4b7520c1f37633f8f

Contents?: true

Size: 1.35 KB

Versions: 89

Compression:

Stored size: 1.35 KB

Contents

# frozen_string_literal: true

module ActionController
  class ActionControllerError < StandardError #:nodoc:
  end

  class BadRequest < ActionControllerError #:nodoc:
    def initialize(msg = nil)
      super(msg)
      set_backtrace $!.backtrace if $!
    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 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

89 entries across 89 versions & 4 rubygems

Version Path
actionpack-5.2.8.1 lib/action_controller/metal/exceptions.rb
actionpack-5.2.8 lib/action_controller/metal/exceptions.rb
actionpack-5.2.7.1 lib/action_controller/metal/exceptions.rb
actionpack-5.2.7 lib/action_controller/metal/exceptions.rb
actionpack-5.2.6.3 lib/action_controller/metal/exceptions.rb
actionpack-5.2.6.2 lib/action_controller/metal/exceptions.rb
actionpack-5.2.6.1 lib/action_controller/metal/exceptions.rb
actionpack-5.2.6 lib/action_controller/metal/exceptions.rb
actionpack-5.2.4.6 lib/action_controller/metal/exceptions.rb
actionpack-5.2.5 lib/action_controller/metal/exceptions.rb
actionpack-5.2.4.5 lib/action_controller/metal/exceptions.rb
actionpack-5.2.4.4 lib/action_controller/metal/exceptions.rb
actionpack-5.2.4.3 lib/action_controller/metal/exceptions.rb
actionpack-5.2.4.2 lib/action_controller/metal/exceptions.rb
actionpack-5.2.4.1 lib/action_controller/metal/exceptions.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_controller/metal/exceptions.rb
actionpack-5.2.4 lib/action_controller/metal/exceptions.rb
actionpack-5.2.4.rc1 lib/action_controller/metal/exceptions.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_controller/metal/exceptions.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_controller/metal/exceptions.rb