Exception: Common::Exceptions::NotASafeHostError
- Defined in:
- lib/common/exceptions/not_a_safe_host_error.rb
Overview
Parameter Missing - required parameter was not provided
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Instance Method Summary collapse
- #errors ⇒ Object
-
#initialize(host) ⇒ NotASafeHostError
constructor
A new instance of NotASafeHostError.
Methods inherited from BaseError
#log_to_sentry?, #message, #sentry_type, #status_code
Constructor Details
#initialize(host) ⇒ NotASafeHostError
Returns a new instance of NotASafeHostError.
12 13 14 |
# File 'lib/common/exceptions/not_a_safe_host_error.rb', line 12 def initialize(host) @host = host end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
10 11 12 |
# File 'lib/common/exceptions/not_a_safe_host_error.rb', line 10 def host @host end |
Instance Method Details
#errors ⇒ Object
16 17 18 |
# File 'lib/common/exceptions/not_a_safe_host_error.rb', line 16 def errors Array(SerializableError.new(i18n_interpolated(detail: { host: @host }))) end |