Class: A2A::PushNotificationNotSupportedError
- Inherits:
-
JSONRPC::Error
- Object
- JSONRPC::Error
- A2A::PushNotificationNotSupportedError
- Defined in:
- lib/a2a/types/push_notification_not_supported_error.rb
Overview
Error for unsupported push notifications (-32003)
Raised when client attempts to use push notification features but the server agent does not support them (i.e., AgentCard.capabilities.pushNotifications is false).
Instance Method Summary collapse
-
#initialize(message = 'Push Notification is not supported.', data: nil, request_id: nil) ⇒ PushNotificationNotSupportedError
constructor
Creates a new Push Notification Not Supported Error with code -32003.
Constructor Details
#initialize(message = 'Push Notification is not supported.', data: nil, request_id: nil) ⇒ PushNotificationNotSupportedError
Creates a new Push Notification Not Supported Error with code -32003
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/a2a/types/push_notification_not_supported_error.rb', line 29 def initialize( = 'Push Notification is not supported.', data: nil, request_id: nil ) super( , code: ErrorCodes::PUSH_NOTIFICATION_NOT_SUPPORTED, data:, request_id: ) end |