Exception: Isomorphic::IsomorphicError Abstract

Inherits:
StandardError
  • Object
show all
Defined in:
lib/isomorphic/errors.rb

Overview

This class is abstract.

Generic base class for all Isomorphic errors.

Direct Known Subclasses

FactoryError, InflectorError, LensError, NodeError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, base) ⇒ IsomorphicError

Default constructor.

Parameters:

  • message (String) (defaults to: nil)

    the message

  • base (Module)

    the base module



14
15
16
17
18
# File 'lib/isomorphic/errors.rb', line 14

def initialize(message = nil, base)
  @base = base

  super(message)
end

Instance Attribute Details

#baseObject (readonly)

Returns the value of attribute base.



8
9
10
# File 'lib/isomorphic/errors.rb', line 8

def base
  @base
end