Exception: Fluence::Gateway::Auth::InvalidScopeName

Inherits:
ConfigurationError show all
Defined in:
lib/fluence/gateway/auth/errors.rb

Overview

Raised by Configuration#scope_name= when the explicit value does not match Configuration::SCOPE_NAME_PATTERN, and by Configuration#scope_name when the value derived from user_model does not match either.

Instance Method Summary collapse

Constructor Details

#initialize(value, reason: nil) ⇒ void

Builds the exception with a human-readable message.

Parameters:

  • value (Object)

    the rejected value.

  • reason (String, nil) (defaults to: nil)

    optional human-readable explanation appended after the value.