Exception: WSDL::ResourceLimitError
- Inherits:
-
FatalError
- Object
- StandardError
- Error
- FatalError
- WSDL::ResourceLimitError
- Defined in:
- lib/wsdl/errors.rb
Overview
Raised when a resource limit is exceeded.
This error protects against denial-of-service attacks from malformed or malicious WSDL documents that could exhaust system resources.
Instance Attribute Summary collapse
-
#actual_value ⇒ Integer
readonly
The actual value that exceeded the limit.
-
#limit_name ⇒ Symbol
readonly
The name of the limit that was exceeded.
-
#limit_value ⇒ Integer
readonly
The configured limit value.
Instance Method Summary collapse
-
#initialize(message = nil, limit_name: nil, limit_value: nil, actual_value: nil) ⇒ ResourceLimitError
constructor
Creates a new ResourceLimitError.
Constructor Details
#initialize(message = nil, limit_name: nil, limit_value: nil, actual_value: nil) ⇒ ResourceLimitError
Creates a new ResourceLimitError.
355 356 357 358 359 360 |
# File 'lib/wsdl/errors.rb', line 355 def initialize( = nil, limit_name: nil, limit_value: nil, actual_value: nil) @limit_name = limit_name @limit_value = limit_value @actual_value = actual_value super() end |
Instance Attribute Details
#actual_value ⇒ Integer (readonly)
Returns the actual value that exceeded the limit.
347 348 349 |
# File 'lib/wsdl/errors.rb', line 347 def actual_value @actual_value end |
#limit_name ⇒ Symbol (readonly)
Returns the name of the limit that was exceeded.
341 342 343 |
# File 'lib/wsdl/errors.rb', line 341 def limit_name @limit_name end |
#limit_value ⇒ Integer (readonly)
Returns the configured limit value.
344 345 346 |
# File 'lib/wsdl/errors.rb', line 344 def limit_value @limit_value end |