Exception: SAPNW::RFC::ServerException
- Inherits:
-
Exception
- Object
- Exception
- SAPNW::RFC::ServerException
- Defined in:
- lib/sapnwrfc/server.rb
Instance Method Summary collapse
-
#initialize(error = nil) ⇒ ServerException
constructor
A new instance of ServerException.
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 |