Exception: StatusMcp::ResponseSizeExceededError

Inherits:
Error
  • Object
show all
Defined in:
lib/status_mcp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_sizeObject (readonly)

Returns the value of attribute max_size.



11
12
13
# File 'lib/status_mcp.rb', line 11

def max_size
  @max_size
end

#sizeObject (readonly)

Returns the value of attribute size.



11
12
13
# File 'lib/status_mcp.rb', line 11

def size
  @size
end

#uriObject (readonly)

Returns the value of attribute uri.



11
12
13
# File 'lib/status_mcp.rb', line 11

def uri
  @uri
end