Exception: Concurrent::Agent::ValidationError

Inherits:
Error
  • Object
show all
Defined in:
lib/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.



176
177
178
179
# File 'lib/concurrent/agent.rb', line 176

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