Exception: AIXM::Error Abstract

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

Overview

This class is abstract.

Extension of StandardError which contains the subject of the error.

Direct Known Subclasses

GeometryError, LayerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, subject = nil) ⇒ Error

Returns a new instance of Error


9
10
11
12
# File 'lib/aixm/errors.rb', line 9

def initialize(message, subject=nil)
  @subject = subject
  super message
end

Instance Attribute Details

#subjectObject (readonly)

Returns the value of attribute subject


7
8
9
# File 'lib/aixm/errors.rb', line 7

def subject
  @subject
end