Exception: Tango::Error::ClientError

Inherits:
Tango::Error
  • Object
show all
Defined in:
lib/tango/error.rb

Instance Attribute Summary

Attributes inherited from Tango::Error

#status_code

Class Method Summary collapse

Methods inherited from Tango::Error

#backtrace, from_status_code, #initialize

Constructor Details

This class inherits a constructor from Tango::Error

Class Method Details

.raise_on?(status_code) ⇒ Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/tango/error.rb', line 29

def self.raise_on?(status_code)
  400 <= status_code && status_code < 500
end