Exception: MyGengo::Exception

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mygengo-ruby/mygengo_exception.rb

Overview

Base Exception class and such.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opstat, code, msg) ⇒ Exception

Pretty self explanatory stuff here…



7
8
9
10
11
12
13
# File 'lib/mygengo-ruby/mygengo_exception.rb', line 7

def initialize(opstat, code, msg)
	@opstat = opstat
	@code = code
	@msg = msg

	puts msg
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



4
5
6
# File 'lib/mygengo-ruby/mygengo_exception.rb', line 4

def code
  @code
end

#msgObject

Returns the value of attribute msg.



4
5
6
# File 'lib/mygengo-ruby/mygengo_exception.rb', line 4

def msg
  @msg
end

#opstatObject

Returns the value of attribute opstat.



4
5
6
# File 'lib/mygengo-ruby/mygengo_exception.rb', line 4

def opstat
  @opstat
end