Method: MatrixSdk::MatrixConnectionError.class_by_code

Defined in:
lib/matrix_sdk/errors.rb

.class_by_code(code) ⇒ Object



51
52
53
54
55
# File 'lib/matrix_sdk/errors.rb', line 51

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

  MatrixConnectionError
end