Exception: Concurrent::Agent::ValidationError

Inherits:
Error
  • Object
show all
Defined in:
lib/concurrent-ruby/concurrent/agent.rb

Overview

Raised when a new value obtained during action processing or at #restart fails validation.

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ ValidationError

Returns a new instance of ValidationError.



177
178
179
180
# File 'lib/concurrent-ruby/concurrent/agent.rb', line 177

def initialize(message = nil)
  message ||= 'invalid value'
  super(message)
end