Method: MatrixSdk::MatrixConnectionError.class_by_code

Defined in:
lib/matrix_sdk/errors.rb

.class_by_code(code) ⇒ Object



55
56
57
58
59
# File 'lib/matrix_sdk/errors.rb', line 55

def self.class_by_code(code)
  return MatrixTimeoutError if code == 504

  MatrixConnectionError
end