Class: Cline::Log::ErrorCause

Inherits:
Schema
  • Object
show all
Defined in:
lib/cline/log.rb

Overview

Cause of an API call error

Instance Attribute Summary

Attributes inherited from Schema

#extra_attributes

Public API collapse

Methods inherited from Schema

#==, as_hash, cast, cline_snake_attributes, of_hash, #to_cline_json, #to_hash

Instance Method Details

#codeString?

Returns Error code (e.g. "ConnectionRefused").

Returns:

  • (String, nil)

    Error code (e.g. "ConnectionRefused")



11
# File 'lib/cline/log.rb', line 11

attribute :code, :string

#errnoInteger?

Returns Error number.

Returns:

  • (Integer, nil)

    Error number



17
# File 'lib/cline/log.rb', line 17

attribute :errno, :integer

#pathString?

Returns URL path that caused the error.

Returns:

  • (String, nil)

    URL path that caused the error



14
# File 'lib/cline/log.rb', line 14

attribute :path, :string