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.



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

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.



9
10
11
# File 'lib/zuora_connect/exceptions.rb', line 9

def default_message=(value)
  @default_message = value
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/zuora_connect/exceptions.rb', line 16

def to_s
  @message || @default_message
end