Sha256: d3bdc70fa866a15d691cfcf75b9c5e71af894747d72685af9246aabf49aa9cef

Contents?: true

Size: 983 Bytes

Versions: 3

Compression:

Stored size: 983 Bytes

Contents

module Morpheus
  # Occurs when a configuration issue occurs, like when the remote host is not set.
  class ConfigurationError < ::StandardError
  end

  # Occurs when a request from a remote host is made while Morpheus::Configuration.allow_net_connect is set to false.
  class NetConnectNotAllowedError < ::StandardError
    attr_accessor :request
    def initialize(_request=nil)
      self.request= _request
    end
  end

  # Occurs when the remote host is unreachable.
  class RemoteHostConnectionFailure < ::StandardError
  end

  # Occurs when there is a server error resulting in a 500 response code
  class ServerError < ::StandardError
  end

  # Occurs when the requested resource returns a 404 error, indicating that it could not be found.
  class ResourceNotFound < ::StandardError
  end

  # Occurs when the typecast type is not one of the known values.
  class UnrecognizedTypeCastClass < ::StandardError
  end

  class InvalidResponseCode < ::StandardError
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
morpheus-0.3.9 lib/morpheus/errors.rb
morpheus-0.3.8 lib/morpheus/errors.rb
morpheus-0.3.7 lib/morpheus/errors.rb