Exception: ZuoraConnect::Exceptions::SessionInvalid

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

Returns a new instance of SessionInvalid.



13
14
15
16
# File 'lib/zuora_connect/exceptions.rb', line 13

def initialize(message = nil)
  @message = message
  @default_message = "Session data invalid."
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.



11
12
13
# File 'lib/zuora_connect/exceptions.rb', line 11

def default_message=(value)
  @default_message = value
end

Instance Method Details

#to_sObject



18
19
20
# File 'lib/zuora_connect/exceptions.rb', line 18

def to_s
  @message || @default_message
end