Exception: AssistantConversation::OwnershipTransferRejected

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/assistant_conversation.rb

Overview

Raised when a locked ownership transfer finds that the conversation is no
longer eligible for administrative takeover.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ OwnershipTransferRejected

Returns a new instance of OwnershipTransferRejected.

Parameters:

  • reason (Symbol)

    why the transfer was rejected



45
46
47
48
# File 'app/models/assistant_conversation.rb', line 45

def initialize(reason)
  @reason = reason
  super("Assistant conversation ownership transfer rejected: #{reason}")
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



42
43
44
# File 'app/models/assistant_conversation.rb', line 42

def reason
  @reason
end