Class: Contrast::Config::ExceptionConfiguration

Inherits:
BaseConfiguration show all
Defined in:
lib/contrast/config/exception_configuration.rb

Overview

Common Configuration settings. Those in this section pertain to the exception handling in Ruby, allowing for the override of Response Code and Message when Security Exceptions are raised.

Constant Summary collapse

KEYS =
{
    capture: EMPTY_VALUE,
    override_status: EMPTY_VALUE,
    override_message: EMPTY_VALUE
}.cs__freeze

Constants inherited from BaseConfiguration

BaseConfiguration::BOOLEANS, BaseConfiguration::EMPTY_VALUE

Instance Attribute Summary

Attributes inherited from BaseConfiguration

#map

Instance Method Summary collapse

Methods inherited from BaseConfiguration

#assign_value_to_path_array, #nil?

Constructor Details

#initialize(hsh) ⇒ ExceptionConfiguration

Returns a new instance of ExceptionConfiguration.



16
17
18
# File 'lib/contrast/config/exception_configuration.rb', line 16

def initialize hsh
  super(hsh, KEYS)
end