Exception: Rookout::Exceptions::RookMessageSizeExceeded

Inherits:
ToolException
  • Object
show all
Defined in:
lib/rookout/exceptions.rb

Instance Attribute Summary

Attributes inherited from ToolException

#parameters

Instance Method Summary collapse

Constructor Details

#initialize(message_size, max_message_size) ⇒ RookMessageSizeExceeded

Returns a new instance of RookMessageSizeExceeded.



90
91
92
93
94
95
# File 'lib/rookout/exceptions.rb', line 90

def initialize message_size, max_message_size
  super "Message size of #{message_size} exceeds max size limit of #{max_message_size}. " \
        "Change the depth of collection or change the default by setting ROOKOUT_MAX_MESSAGE_SIZE " \
        "as environment variable or system property",
        { "message_size" => message_size, "max_message_size" => max_message_size }
end