Exception: ZuoraConnect::Exceptions::AccessDenied

Inherits:
Error
  • Object
show all
Defined in:
lib/zuora_connect/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ AccessDenied

Returns a new instance of AccessDenied.



57
58
59
60
# File 'lib/zuora_connect/exceptions.rb', line 57

def initialize(message = nil)
  @message = message
  @default_message = "You are not authorized to access this page."
end

Instance Attribute Details

#default_message=(value) ⇒ Object (writeonly)

Sets the attribute default_message

Parameters:

  • value

    the value to set the attribute default_message to.



55
56
57
# File 'lib/zuora_connect/exceptions.rb', line 55

def default_message=(value)
  @default_message = value
end

Instance Method Details

#to_sObject



62
63
64
# File 'lib/zuora_connect/exceptions.rb', line 62

def to_s
  @message || @default_message
end