Exception: Hps::HpsException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hps/infrastructure/hps_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code, inner_exception = nil) ⇒ HpsException

Returns a new instance of HpsException.



7
8
9
10
11
12
13
# File 'lib/hps/infrastructure/hps_exception.rb', line 7

def initialize(message, code, inner_exception = nil)

    @code=code
    @inner_exception = inner_exception
    super(message)

end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



4
5
6
# File 'lib/hps/infrastructure/hps_exception.rb', line 4

def code
  @code
end

#inner_exceptionObject

Returns the value of attribute inner_exception.



4
5
6
# File 'lib/hps/infrastructure/hps_exception.rb', line 4

def inner_exception
  @inner_exception
end

#response_codeObject

Returns the value of attribute response_code.



4
5
6
# File 'lib/hps/infrastructure/hps_exception.rb', line 4

def response_code
  @response_code
end

#response_textObject

Returns the value of attribute response_text.



4
5
6
# File 'lib/hps/infrastructure/hps_exception.rb', line 4

def response_text
  @response_text
end