Exception: Mindee::Errors::MindeeHTTPUnknownErrorV2

Inherits:
MindeeHTTPErrorV2 show all
Defined in:
lib/mindee/errors/mindee_http_unknown_error_v2.rb

Overview

Unknown HTTP error for the V2 API.

Instance Attribute Summary

Attributes inherited from MindeeHTTPErrorV2

#code, #detail, #errors, #status, #title

Instance Method Summary collapse

Constructor Details

#initialize(http_error) ⇒ MindeeHTTPUnknownErrorV2

Returns a new instance of MindeeHTTPUnknownErrorV2.



9
10
11
12
13
14
15
# File 'lib/mindee/errors/mindee_http_unknown_error_v2.rb', line 9

def initialize(http_error)
  super({ 'detail' => "Couldn't deserialize server error. Found: #{http_error}",
          'status' => -1,
          'title' => 'Unknown Error',
          'code' => '000-000',
          'errors' => nil })
end