Exception: ZuoraConnect::Exceptions::OrganizationAccessForbidden

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) ⇒ OrganizationAccessForbidden

Returns a new instance of OrganizationAccessForbidden.



73
74
75
76
# File 'lib/zuora_connect/exceptions.rb', line 73

def initialize(message = nil)
  @message = message
  @default_message = "You are not authorized to access with the current organization."
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.



71
72
73
# File 'lib/zuora_connect/exceptions.rb', line 71

def default_message=(value)
  @default_message = value
end

Instance Method Details

#to_sObject



78
79
80
# File 'lib/zuora_connect/exceptions.rb', line 78

def to_s
  @message || @default_message
end