Exception: SAPNW::RFC::ServerException

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

Instance Method Summary collapse

Constructor Details

#initialize(error = nil) ⇒ ServerException

Returns a new instance of ServerException.



49
50
51
52
53
54
# File 'lib/sapnwrfc/server.rb', line 49

def initialize(error=nil)
  unless error.class == Hash
    error = {'code' => 3, 'key' => 'RUNTIME', 'message' => error.to_s}
  end
  @error = error
end