Exception: ActiveAssets::ActiveExpansions::Asset::InvalidContext

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_assets/active_expansions/asset.rb

Direct Known Subclasses

AmbiguousContext, ValidationError

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ InvalidContext

Returns a new instance of InvalidContext.



9
10
11
12
# File 'lib/active_assets/active_expansions/asset.rb', line 9

def initialize(msg = nil)
  msg ||= "You do not have a valid context to create this asset.  Some properties are missing.  They are: #{REQUIRED_PROPS.join(', ')}."
  super(msg)
end