Sha256: 32a4468cc17cd1459c7fad741df2c7c5306d7818f7c8bed8eadfb79ef8e62279

Contents?: true

Size: 868 Bytes

Versions: 9

Compression:

Stored size: 868 Bytes

Contents

module MCollective
  # Exceptions for the RPC system
  class DDLValidationError < RuntimeError; end
  class ValidatorError < RuntimeError; end
  class ClientTimeoutError < RuntimeError; end
  class MsgDoesNotMatchRequestID < RuntimeError; end
  class MsgTTLExpired < RuntimeError; end
  class NotTargettedAtUs < RuntimeError; end
  class RPCError < StandardError; end
  class SecurityValidationFailed < RuntimeError; end

  class BackoffSuggestion < StandardError
    attr_reader :backoff

    def initialize(backoff=nil)
      @backoff = backoff
    end
  end

  class MessageNotReceived < BackoffSuggestion; end
  class UnexpectedMessageType < BackoffSuggestion; end

  class InvalidRPCData < RPCError; end
  class MissingRPCData < RPCError; end
  class RPCAborted < RPCError; end
  class UnknownRPCAction < RPCError; end
  class UnknownRPCError < RPCError; end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
choria-mcorpc-support-2.22.1 lib/mcollective/exceptions.rb
choria-mcorpc-support-2.22.0 lib/mcollective/exceptions.rb
choria-mcorpc-support-2.21.1 lib/mcollective/exceptions.rb
choria-mcorpc-support-2.21.0 lib/mcollective/exceptions.rb
choria-mcorpc-support-2.20.8 lib/mcollective/exceptions.rb
choria-mcorpc-support-2.20.7 lib/mcollective/exceptions.rb
choria-mcorpc-support-2.20.6 lib/mcollective/exceptions.rb
choria-mcorpc-support-2.20.5 lib/mcollective/exceptions.rb
choria-mcorpc-support-2.20.4 lib/mcollective/exceptions.rb