Class: Safrano::RubyStandardErrorException

Inherits:
ServerError
  • Object
show all
Includes:
ErrorInstance
Defined in:
lib/odata/error.rb

Overview

for outputing Ruby StandardError exceptions that we could not prevent

Constant Summary

Constants inherited from ServerError

ServerError::HTTP_CODE

Constants included from ErrorClass

ErrorClass::EMPTYH

Instance Method Summary collapse

Methods included from ErrorInstance

#msg, #odata_get

Methods included from Contract::Invalid

#collect_result!, #error, #if_error, #if_valid, #if_valid_collect, #map_result!, #result, #tap_error, #tap_valid

Methods included from ErrorClass

#http_code, #odata_get

Constructor Details

#initialize(rubye7n) ⇒ RubyStandardErrorException

Returns a new instance of RubyStandardErrorException.



137
138
139
# File 'lib/odata/error.rb', line 137

def initialize(rubye7n)
  @msg = rubye7n.message
end