Exception: Omega::ValidationError

Inherits:
BaseError show all
Defined in:
lib/omega/exceptions.rb

Overview

Raise if user data cannot be validated

Instance Method Summary collapse

Methods inherited from BaseError

#intialize

Constructor Details

#initialize(entity, type = 'entity') ⇒ ValidationError

Returns a new instance of ValidationError


39
40
41
# File 'lib/omega/exceptions.rb', line 39

def initialize(entity, type='entity')
  super("#{entity} must be a valid #{type}")
end