Exception: ActiveMatrix::Errors::MatrixConnectionError

Inherits:
MatrixError
  • Object
show all
Defined in:
lib/active_matrix/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



56
57
58
59
60
# File 'lib/active_matrix/errors.rb', line 56

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

  MatrixConnectionError
end