Exception: TriCoreDB::FeatureNotGranted

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

Overview

The server did not grant a capability this call needs. Raised before anything is sent.

Instance Attribute Summary collapse

Attributes inherited from Error

#code, #leader_hint

Instance Method Summary collapse

Methods inherited from Error

#redirect?

Constructor Details

#initialize(feature, message) ⇒ FeatureNotGranted

Returns a new instance of FeatureNotGranted.



80
81
82
83
# File 'lib/tricoredb/errors.rb', line 80

def initialize(feature, message)
  super(message)
  @feature = feature
end

Instance Attribute Details

#feature ⇒ String (readonly)

Returns the feature name, e.g. SERVER_PARAMS.

Returns:

  • (String) —

    the feature name, e.g. SERVER_PARAMS



78
79
80
# File 'lib/tricoredb/errors.rb', line 78

def feature
  @feature
end