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

- (Exception) initialize(opstat, code, msg)

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

- (Object) code

Returns the value of attribute code



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

def code
  @code
end

- (Object) msg

Returns the value of attribute msg



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

def msg
  @msg
end

- (Object) opstat

Returns the value of attribute opstat



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

def opstat
  @opstat
end