Exception: StatusMcp::ResponseSizeExceededError
- Defined in:
- lib/status_mcp.rb
Instance Attribute Summary collapse
-
#max_size ⇒ Object
readonly
Returns the value of attribute max_size.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(size, max_size, uri: nil) ⇒ ResponseSizeExceededError
constructor
A new instance of ResponseSizeExceededError.
Constructor Details
#initialize(size, max_size, uri: nil) ⇒ ResponseSizeExceededError
Returns a new instance of ResponseSizeExceededError.
13 14 15 16 17 18 |
# File 'lib/status_mcp.rb', line 13 def initialize(size, max_size, uri: nil) @size = size @max_size = max_size @uri = uri super("Response size (#{size} bytes) exceeds maximum allowed size (#{max_size} bytes). This may indicate crawler protection or zip bomb.") end |
Instance Attribute Details
#max_size ⇒ Object (readonly)
Returns the value of attribute max_size.
11 12 13 |
# File 'lib/status_mcp.rb', line 11 def max_size @max_size end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
11 12 13 |
# File 'lib/status_mcp.rb', line 11 def size @size end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
11 12 13 |
# File 'lib/status_mcp.rb', line 11 def uri @uri end |