Exception: Common::Exceptions::NotASafeHostError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/common/exceptions/not_a_safe_host_error.rb

Overview

Parameter Missing - required parameter was not provided

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hostObject (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

#errorsObject



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