Exception: AGIMenuFailure

Inherits:
Exception
  • Object
show all
Defined in:
lib/AGIExceptions.rb

Overview

AGIMenuFailure signifies that there was a failure in constructing or playing an AGIMenu

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ AGIMenuFailure

Returns a new instance of AGIMenuFailure.



87
88
89
# File 'lib/AGIExceptions.rb', line 87

def initialize(str)
  @message = str
end

Instance Method Details

#to_sObject



90
91
92
# File 'lib/AGIExceptions.rb', line 90

def to_s
  @message
end

#to_strObject



93
94
95
# File 'lib/AGIExceptions.rb', line 93

def to_str
  self.to_s
end