Class: GMO::PG::Errors::Error

Inherits:
Struct
  • Object
show all
Defined in:
lib/gmo-pg/http_resource/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#err_codeObject

Returns the value of attribute err_code

Returns:

  • (Object)

    the current value of err_code



4
5
6
# File 'lib/gmo-pg/http_resource/errors.rb', line 4

def err_code
  @err_code
end

#err_infoObject

Returns the value of attribute err_info

Returns:

  • (Object)

    the current value of err_info



4
5
6
# File 'lib/gmo-pg/http_resource/errors.rb', line 4

def err_info
  @err_info
end

Instance Method Details

#to_errorObject



5
6
7
# File 'lib/gmo-pg/http_resource/errors.rb', line 5

def to_error
  GMO::PG::Error.from_api_error(err_code, err_info)
end