Exception: BusinessCentral::InvalidGrantException

Inherits:
BusinessCentralError show all
Defined in:
lib/business_central/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_message) ⇒ InvalidGrantException

Returns a new instance of InvalidGrantException.



46
47
48
49
# File 'lib/business_central/exceptions.rb', line 46

def initialize(error_message)
  @error_message = error_message
  super
end

Instance Attribute Details

#error_messageObject (readonly)

Returns the value of attribute error_message.



51
52
53
# File 'lib/business_central/exceptions.rb', line 51

def error_message
  @error_message
end

Instance Method Details

#messageObject



53
54
55
# File 'lib/business_central/exceptions.rb', line 53

def message
  'The provided grant has expired due to it being revoked, a fresh auth token is needed'
end