Class: Glia::Errors::FeatureDisabledError

Inherits:
Error
  • Object
show all
Defined in:
lib/glia/errors/client_errors.rb

Instance Attribute Summary

Attributes inherited from Error

#error_details, #message, #ref, #type

Instance Method Summary collapse

Methods inherited from Error

#to_h

Constructor Details

#initialize(feature:, message: nil) ⇒ FeatureDisabledError

Returns a new instance of FeatureDisabledError.



463
464
465
466
467
468
469
# File 'lib/glia/errors/client_errors.rb', line 463

def initialize(feature:, message: nil)
  super(
    type: FEATURE_DISABLED_ERROR,
    ref: create_ref(FEATURE_DISABLED_ERROR),
    message: message || "#{Naming.humanize(feature)} is disabled"
  )
end