Exception: MatrixSdk::MatrixConnectionError

Inherits:
MatrixError show all
Defined in:
lib/matrix_sdk/errors.rb

Overview

An error raised when errors occur in the connection layer

Direct Known Subclasses

MatrixTimeoutError

Class Method Summary collapse

Class Method Details

.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