Exception: VectorMCP::PayloadTooLargeError
- Defined in:
- lib/vector_mcp/errors.rb
Overview
Raised when an HTTP request body exceeds the transport's configured limit.
Instance Attribute Summary collapse
-
#max_bytes ⇒ Object
readonly
Returns the value of attribute max_bytes.
Instance Method Summary collapse
-
#initialize(max_bytes) ⇒ PayloadTooLargeError
constructor
A new instance of PayloadTooLargeError.
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_bytes ⇒ Object (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 |