Exception: Stytch::M2MPermissionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/stytch/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(has_scopes, required_scopes) ⇒ M2MPermissionError

Returns a new instance of M2MPermissionError.



54
55
56
57
# File 'lib/stytch/errors.rb', line 54

def initialize(has_scopes, required_scopes)
  msg = "Missing at least one required scope from #{required_scopes} for M2M request with scopes #{has_scopes}"
  super(msg)
end