Exception: VectorMCP::PayloadTooLargeError

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

Overview

Raised when an HTTP request body exceeds the transport's configured limit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max_bytes) ⇒ PayloadTooLargeError

Returns a new instance of PayloadTooLargeError.



11
12
13
14
# File 'lib/vector_mcp/errors.rb', line 11

def initialize(max_bytes)
  @max_bytes = max_bytes
  super("Request body exceeds the maximum allowed size of #{max_bytes} bytes")
end

Instance Attribute Details

#max_bytesObject (readonly)

Returns the value of attribute max_bytes.



9
10
11
# File 'lib/vector_mcp/errors.rb', line 9

def max_bytes
  @max_bytes
end